fx: player rotation

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

No files matched your search

@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.