From 471242cc3c88db2860d5569b190d40eca09b00a5 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sun, 29 Oct 2023 19:38:44 -0300 Subject: [PATCH] fix underired movement --- lib_planes/entities.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index e61ade1..6009fdd 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -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)