diff --git a/Player.gd b/Player.gd index a9791f8..3663f20 100644 --- a/Player.gd +++ b/Player.gd @@ -35,7 +35,7 @@ remote func jump(): velocity.y = JUMP_VELOCITY func motion(delta): - self.move_and_slide(velocity * delta, Vector3.UP) + self.move_and_slide(velocity.rotated(Vector3.UP, self.rotation.y) * delta, Vector3.UP) func _physics_process(delta): gravity()