feat: implement modular movement state machine and ground, air, and wall climb states

This commit is contained in:
DottsGit
2026-06-10 22:27:10 -04:00
parent 18ab9da4a3
commit 3dc7fda622
4 changed files with 21 additions and 14 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ func update(delta: float) -> void:
var looking_towards := look_dir.dot(-fwd_wall.normal) > 0.0
var moving_towards := wish_dir.dot(-fwd_wall.normal) > cos(deg_to_rad(params.wall_climb_max_angle))
if looking_towards and moving_towards:
if looking_towards and moving_towards and machine.can_wall_climb:
machine.wall_normal = fwd_wall.normal
machine.switch_to("wall_climb")
return