From f6200b9442ba21a7639749ef77328ce4ab3cbcb9 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sat, 17 Jun 2023 21:31:06 -0300 Subject: [PATCH] added pitch and yaw adjusts --- lib_planes/control.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_planes/control.lua b/lib_planes/control.lua index 1b19273..f4170f4 100755 --- a/lib_planes/control.lua +++ b/lib_planes/control.lua @@ -146,7 +146,7 @@ function airutils.control(self, dtime, hull_direction, longit_speed, longit_drag end function airutils.set_pitch(self, dir, dtime) - local pitch_factor = 0.6 + local pitch_factor = self._pitch_intensity or 0.6 local multiplier = pitch_factor*(dtime/airutils.ideal_step) if dir == -1 then --minetest.chat_send_all("cabrando") @@ -160,7 +160,7 @@ function airutils.set_pitch(self, dir, dtime) end function airutils.set_yaw(self, dir, dtime) - local yaw_factor = 25 + local yaw_factor = self._yaw_intensity or 25 if dir == 1 then self._rudder_angle = math.max(self._rudder_angle-(yaw_factor*dtime),-self._rudder_limit) elseif dir == -1 then