Seems like input_dir was defined in _physics_process, not _handle_water_physics
input_dir
_physics_process
_handle_water_physics
Make sure to paste your scripts between three ticks ```