feat: add behaviour events from the simulation results

This commit is contained in:
Rijad Zuzo
2026-06-19 10:42:11 +02:00
parent af3495f4e3
commit c37eb9bd3d
4 changed files with 63 additions and 26 deletions
+5 -1
View File
@@ -28,7 +28,11 @@ func _physics_process(delta: float) -> void:
velocity.x = move_toward(velocity.x, target_velocity.x, acceleration * delta)
velocity.z = move_toward(velocity.z, target_velocity.z, acceleration * delta)
velocity.y = 0.0
if not is_on_floor():
velocity.y -= 30.0 * delta
else:
velocity.y = 0.0
move_and_slide()