godot4-port
Jan 2020-06-14 02:11:07 +02:00
commit 0967492b81
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ remote func mouselook(rel):
camera.rotate_x(-rel.y * MOUSE_SENSITIVITY)
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()