diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-22 18:21:46 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:28:39 +0200 |
commit | 05269b84133a3a91b5234fcc47f7135eb15e4b3e (patch) | |
tree | 6184d8a729394253b6a840b6758a428ef589378f /client/scripts | |
parent | e366cfdf9133c0da798352c474580d329c6a0f33 (diff) | |
download | hurrycurry-05269b84133a3a91b5234fcc47f7135eb15e4b3e.tar hurrycurry-05269b84133a3a91b5234fcc47f7135eb15e4b3e.tar.bz2 hurrycurry-05269b84133a3a91b5234fcc47f7135eb15e4b3e.tar.zst |
fix player rotation
Diffstat (limited to 'client/scripts')
-rw-r--r-- | client/scripts/controllable_player.gd | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/scripts/controllable_player.gd b/client/scripts/controllable_player.gd index 34ef5859..d27f28e3 100644 --- a/client/scripts/controllable_player.gd +++ b/client/scripts/controllable_player.gd @@ -14,7 +14,7 @@ func _ready(): add_child(timer) timer.start() timer.connect("timeout", func(): - Multiplayer.send_position(Vector2(position.x, position.z), -rotation.y + .5 * PI) + Multiplayer.send_position(Vector2(position.x, position.z), rotation.y) ) func _process(delta): @@ -23,7 +23,6 @@ func _process(delta): update(delta, input) super(delta) - func update(dt: float, input: Vector2): var direction = input.limit_length(1.); rotation.y = atan2(self.facing.x, self.facing.y); |