fx: player rotation

This commit is contained in:
2026-01-27 19:23:37 +01:00
parent 487062e25c
commit c9880d9b35
2 changed files with 1 additions and 4 deletions

View File

@@ -34,8 +34,7 @@ func _process(delta):
try_attack()
if not velocity.is_zero_approx():
look_at(velocity * 1000000) # FIXME: ideally we look_at a point at infinity
# or rotate the player some other way
self.rotation = atan2(velocity.y, velocity.x)
move_and_collide(speed * velocity * delta)
#position += speed * velocity * delta
position = GameManager.get_boundaried_position(position)