feat: add behaviour events from the simulation results
This commit is contained in:
+5
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user