mirror of
https://github.com/APercy/airutils.git
synced 2025-03-23 03:12:20 +00:00
lowered extra lift with high wind
This commit is contained in:
parent
e330f86ba3
commit
32ff3b0c28
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
@ -237,7 +237,7 @@ end
|
||||||
-- wingspan: for ground effect calculation
|
-- wingspan: for ground effect calculation
|
||||||
function airutils.getLiftAccel(self, velocity, accel, longit_speed, roll, curr_pos, lift, max_height, wingspan)
|
function airutils.getLiftAccel(self, velocity, accel, longit_speed, roll, curr_pos, lift, max_height, wingspan)
|
||||||
--add wind to the lift calcs
|
--add wind to the lift calcs
|
||||||
local wind = airutils.get_wind(curr_pos, 10)
|
local wind = airutils.get_wind(curr_pos, 5)
|
||||||
local accel_wind = vector.subtract(accel, wind) --why? because I need to fake more speed when against the wind to gain lift
|
local accel_wind = vector.subtract(accel, wind) --why? because I need to fake more speed when against the wind to gain lift
|
||||||
local vel_wind = vector.multiply(accel_wind, self.dtime)
|
local vel_wind = vector.multiply(accel_wind, self.dtime)
|
||||||
local new_velocity = vector.add(velocity, vel_wind)
|
local new_velocity = vector.add(velocity, vel_wind)
|
||||||
|
|
Loading…
Add table
Reference in a new issue