diff options
author | Baitinq <you@example.com> | 2022-02-09 10:17:11 +0000 |
---|---|---|
committer | Baitinq <you@example.com> | 2022-02-09 10:26:05 +0000 |
commit | 97337879d2e60c3b6ee73e283547f6c61cf6067a (patch) | |
tree | 56957b3a2a0a1955fcef83fa9061191cc9462a48 /simulation.py | |
parent | Add support for rocket stages (diff) | |
download | OSLS-97337879d2e60c3b6ee73e283547f6c61cf6067a.tar.gz OSLS-97337879d2e60c3b6ee73e283547f6c61cf6067a.tar.bz2 OSLS-97337879d2e60c3b6ee73e283547f6c61cf6067a.zip |
Fixed thrust calculation by taking g into account
Diffstat (limited to 'simulation.py')
-rw-r--r-- | simulation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simulation.py b/simulation.py index 4d6fc73..cad7772 100644 --- a/simulation.py +++ b/simulation.py @@ -34,7 +34,7 @@ class Simulation(): #upwards_force = fuel_used * self.rocket.fuel_type.energy_density #we should calculate thrust based on this upwards_force = 0 if fuel_used > 0: - upwards_force = current_stage.current_thrust() + upwards_force = current_stage.current_thrust(self.body.g(self.universe.G, self.y)) print("Upwards force: " + str(upwards_force)) print("g: " + str(self.body.g(G=self.universe.G, height=self.y))) |