enabled gravity!
authorEduardo <[email protected]>
Sun, 11 Feb 2024 16:51:21 +0000 (17:51 +0100)
committerEduardo <[email protected]>
Sun, 11 Feb 2024 16:51:21 +0000 (17:51 +0100)
player/Player.gd

index 66307752f69a8f988b9ad7d0cdcca19c966f81dd..676c3793eeec92c160338814a00f8429b5fb1f76 100644 (file)
@@ -68,8 +68,8 @@ func _physics_process(delta):
        target_velocity.x = direction.x * speed * speed_mod
        target_velocity.z = direction.z * speed * speed_mod
 
-       if not is_on_floor():
-       #       target_velocity.y = target_velocity.y - (fall_acceleration * delta)
+       if not is_on_floor():
+               target_velocity.y = target_velocity.y - (fall_acceleration * delta)
 
        velocity = target_velocity
        move_and_slide()