Idk
This commit is contained in:
parent
792465a33c
commit
bd16f01192
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue