diff options
author | tpart <tpart120@proton.me> | 2024-08-16 21:32:35 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-08-16 21:32:35 +0200 |
commit | 444113ddace8b843c79c7f389c0733b342170877 (patch) | |
tree | d312a0407f9f2c8bf6aaeb013dc338b153d944c3 /client | |
parent | 5e9ad1a714352d8d24c20d62e75fbc06fc0ecc8b (diff) | |
download | hurrycurry-444113ddace8b843c79c7f389c0733b342170877.tar hurrycurry-444113ddace8b843c79c7f389c0733b342170877.tar.bz2 hurrycurry-444113ddace8b843c79c7f389c0733b342170877.tar.zst |
FIx interpolate angle function
Diffstat (limited to 'client')
-rw-r--r-- | client/global.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/global.gd b/client/global.gd index 647cac32..b2459d74 100644 --- a/client/global.gd +++ b/client/global.gd @@ -350,7 +350,7 @@ static func interpolate_angle(current, target, dt): current = fmod(current, PI * 2) target = fmod(target, PI * 2) if abs(target - current) > PI: - if target < 0: + if target - current < 0: target += PI * 2 else: target -= PI * 2 |