summaryrefslogtreecommitdiffstats
path: root/character/fps_controller/fps_controller.gd
diff options
context:
space:
mode:
Diffstat (limited to 'character/fps_controller/fps_controller.gd')
-rw-r--r--character/fps_controller/fps_controller.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/character/fps_controller/fps_controller.gd b/character/fps_controller/fps_controller.gd
index a344139..8d5af12 100644
--- a/character/fps_controller/fps_controller.gd
+++ b/character/fps_controller/fps_controller.gd
@@ -54,7 +54,7 @@ func handle_movement():
velocity.y += gravity
if velocity.y < term_velocity:
velocity.y = term_velocity
- velocity = move_and_slide_with_snap(velocity, Vector3.DOWN, Vector3.UP, true, 4, PI/4, false)
+ velocity = move_and_slide_with_snap(velocity, Vector3.DOWN if velocity.y <= 0.0 else Vector3.ZERO, Vector3.UP, true, 4, PI/4, false)
func _input(event):
#Handle mouse movement for camera