Skip to content

Commit

Permalink
taxi improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
APercy committed May 11, 2022
1 parent 00b62c0 commit 4048fd5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hidroplane_utilities.lua
Expand Up @@ -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
Expand Down

0 comments on commit 4048fd5

Please sign in to comment.