added wind effects

This commit is contained in:
Alexsandro Percy 2023-02-26 18:38:38 -03:00
parent 4f0a859083
commit ec9b3a2a40

View File

@ -421,6 +421,12 @@ function trike.flightstep(self)
end
-- end lift
--wind effects
if longit_speed > 1.5 then
local wind = airutils.get_wind(curr_pos, 0.2)
new_accel = vector.add(new_accel, wind)
end
--adjust wing pitch (3d model)
self.object:set_bone_position("wing", {x=0,y=29,z=0}, {x=-self._angle_of_attack,y=0,z=(self._rudder_angle/3)})