diff options
author | tpart <tpart120@proton.me> | 2024-09-27 20:41:35 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-27 20:41:39 +0200 |
commit | 08b25219a4cb5f54a192780253fddcb66de426e6 (patch) | |
tree | 7b36370af802de3862b17e679a0d92539356d720 | |
parent | 674388e1e95f53cbf8be2df19cb47cf3edfd45d4 (diff) | |
download | hurrycurry-08b25219a4cb5f54a192780253fddcb66de426e6.tar hurrycurry-08b25219a4cb5f54a192780253fddcb66de426e6.tar.bz2 hurrycurry-08b25219a4cb5f54a192780253fddcb66de426e6.tar.zst |
Adjust joy vibration strength based on input vector length
-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 07450bab..0cabcb64 100644 --- a/client/player/controllable_player.gd +++ b/client/player/controllable_player.gd @@ -86,7 +86,7 @@ func _process_movement(delta): direction = input update(delta, boost) if boosting and not was_boosting: - Input.start_joy_vibration(0, 0, 1, 0.15) + Input.start_joy_vibration(0, 0, input.length(), 0.15) walking = input.length_squared() > 0.1 position_anim = position_ rotation_anim = rotation_ |