taxi improvement

master
Alexsandro Percy 2022-05-11 20:59:53 -03:00
parent 00b62c08f0
commit 4048fd552e
1 changed files with 8 additions and 0 deletions

View File

@ -663,6 +663,14 @@ function hidroplane.flightstep(self)
local power_indicator_angle = hidroplane.get_gauge_angle(self._power_lever/10)
self.power_gauge:set_attach(self.object,'',HIDROPLANE_GAUGE_POWER_POSITION,{x=0,y=0,z=power_indicator_angle})
if is_flying == false then
-- new yaw
local turn_rate = math.rad(30)
local yaw_turn = self.dtime * math.rad(self._rudder_angle) * turn_rate *
hidroplane.sign(longit_speed) * math.abs(longit_speed/2)
newyaw = yaw + yaw_turn
end
--apply rotations
self.object:set_rotation({x=newpitch,y=newyaw,z=newroll})
--end