Skip to content

Commit

Permalink
fix: avatar rotating in x,z axis when walking (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuruk-mm authored Apr 30, 2024
1 parent 533ff82 commit 1f67f0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions godot/src/logic/player/player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ func _physics_process(dt: float) -> void:
velocity.z = current_direction.z * jog_speed

avatar.look_at(current_direction.normalized() + position)
avatar.rotation.x = 0.0
avatar.rotation.z = 0.0
else:
avatar.walk = false
avatar.run = false
Expand Down

0 comments on commit 1f67f0f

Please sign in to comment.