Skip to content

Commit

Permalink
consumption adjustements
Browse files Browse the repository at this point in the history
  • Loading branch information
APercy committed Mar 28, 2021
1 parent 8846c78 commit 1955cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heli_control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function helicopter.heli_control(self, dtime, touching_ground, liquid_below, vel
local y_pos_reference = position.y - 200 --after altitude 200 the power need will increase
if y_pos_reference > 0 then altitude_consumption_variable = ((y_pos_reference/1000)^2) end

local consumed_power = (power/1000) + altitude_consumption_variable
local consumed_power = (power/1500) + altitude_consumption_variable
self.energy = self.energy - consumed_power;

local energy_indicator_angle = ((self.energy * 18) - 90) * -1
Expand Down

0 comments on commit 1955cdd

Please sign in to comment.