NS-23: Document idle skip vs is_on_floor / move_and_slide

pull/23/head
VinPropane 2026-04-05 15:02:13 -04:00
parent 8fe70a75de
commit 8956545d3c
1 changed files with 2 additions and 0 deletions

View File

@ -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