mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
fix underired movement
This commit is contained in:
parent
616b3b4d60
commit
471242cc3c
1 changed files with 2 additions and 1 deletions
|
@ -515,7 +515,8 @@ function airutils.logic(self)
|
|||
if self.wheels then
|
||||
if is_flying == false then --isn't flying?
|
||||
--animate wheels
|
||||
if math.abs(longit_speed) > 0.1 then
|
||||
local min_speed_animation = 0.1
|
||||
if math.abs(velocity.x) > min_speed_animation or math.abs(velocity.z) > min_speed_animation then
|
||||
self.wheels:set_animation_frame_speed(longit_speed * 10)
|
||||
else
|
||||
self.wheels:set_animation_frame_speed(0)
|
||||
|
|
Loading…
Add table
Reference in a new issue