Stopped player sliding off of a slope.

remotes/1705382094874458415/tmp_refs/heads/godot4-port
unfa 2020-06-14 21:50:07 +02:00
parent abfad802e1
commit efb7dace84
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ remote func mouselook(rel):
camera.rotation.x = clamp(camera.rotation.x-rel.y * MOUSE_SENSITIVITY, -PI/2, PI/2)
func motion(delta):
self.move_and_slide(velocity.rotated(Vector3.UP, self.rotation.y) * delta, Vector3.UP)
self.move_and_slide(velocity.rotated(Vector3.UP, self.rotation.y) * delta, Vector3.UP, true)
func _physics_process(delta):
gravity()