mirror of
https://github.com/APercy/airutils.git
synced 2025-03-23 03:12:20 +00:00
optimizations
This commit is contained in:
parent
4645a5e456
commit
bd85ee4c67
1 changed files with 1 additions and 4 deletions
|
@ -308,10 +308,7 @@ function airutils.logic(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- pitch
|
-- pitch
|
||||||
local newpitch = math.rad(0)
|
local newpitch = airutils.get_plane_pitch(velocity, longit_speed, self._min_speed, self._angle_of_attack)
|
||||||
if airutils.get_plane_pitch then
|
|
||||||
newpitch = airutils.get_plane_pitch(velocity, longit_speed, self._min_speed, self._angle_of_attack)
|
|
||||||
end
|
|
||||||
|
|
||||||
--for airplanes with cannard or pendulum wing
|
--for airplanes with cannard or pendulum wing
|
||||||
local actuator_angle = self._elevator_angle
|
local actuator_angle = self._elevator_angle
|
||||||
|
|
Loading…
Add table
Reference in a new issue