diff --git a/client/scripts/player.gd b/client/scripts/player.gd index 1ca6a66..2d5078e 100644 --- a/client/scripts/player.gd +++ b/client/scripts/player.gd @@ -58,6 +58,8 @@ func _set_horizontal_velocity_toward(point: Vector3) -> void: velocity.y = 0.0 +## `is_on_floor()` comes from the last `move_and_slide()`. Skipping slide while idle reuses that +## stale floor state — OK for static floors; revisit if walkable geometry moves. func _skip_move_when_idle_on_floor() -> bool: return is_on_floor() and velocity.length_squared() < 1e-12