Fixed acceleration not matching direction
This commit is contained in:
@@ -32,6 +32,7 @@ func _physics_process(delta: float) -> void:
|
||||
if action:
|
||||
control_frame.do_action(action, delta, self)
|
||||
|
||||
velocity = -transform.basis.z * control_frame.speed
|
||||
move_and_slide()
|
||||
|
||||
#func _unhandled_input(event: InputEvent) -> void:
|
||||
|
||||
Reference in New Issue
Block a user