diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-19 20:41:33 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-19 20:41:40 +0200 |
commit | 02af3843b695857e9832434336cf093968f00ff5 (patch) | |
tree | 14b0763d1bea8f4f1bc9246320b140dee1dd5508 /client | |
parent | 8b32c50e1bb2b8c8b00105c13c31b896ebab7f8a (diff) | |
download | hurrycurry-02af3843b695857e9832434336cf093968f00ff5.tar hurrycurry-02af3843b695857e9832434336cf093968f00ff5.tar.bz2 hurrycurry-02af3843b695857e9832434336cf093968f00ff5.tar.zst |
update movement code everywhere
Diffstat (limited to 'client')
-rw-r--r-- | client/player/controllable_player.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd index 9e7ce2b2..016ee637 100644 --- a/client/player/controllable_player.gd +++ b/client/player/controllable_player.gd @@ -88,7 +88,7 @@ func _process_movement(delta): rotation_anim = rotation_ func update(dt: float, boost: bool): - direction = direction.limit_length(1.); + direction = direction.limit_length(1.) if direction.length() > 0.05: self.facing = direction + (self.facing - direction) * exp(-dt * 10.) if direction.length() < 0.5: |