This commit is contained in:
Rendo 2025-11-29 01:36:00 +05:00
commit bd16f01192
2 changed files with 2 additions and 2 deletions

View file

@ -26,5 +26,5 @@ func physics_update(delta: float) -> void:
if direction:
if abs(player.velocity.x + direction.x * acceleration * delta) < abs(modified_max_speed * direction.x):
player.velocity.x += direction.x * acceleration * delta
if abs(player.velocity.y + direction.y * acceleration * delta) < abs(modified_max_speed * direction.y):
if abs(player.velocity.z + direction.z * acceleration * delta) < abs(modified_max_speed * direction.z):
player.velocity.z += direction.z * acceleration * delta