mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-10-30 22:01:57 +01:00
patch-caps-lunarlander
This commit is contained in:
1 parent
411661ae67
commit
9104a5d67c
2 files changed
+10
-2
No files matched your search
@@ -372,6 +372,10 @@ def process_final_tick(
|
||||
delta_t = capsule.altitude / average_vel
|
||||
new_state = capsule.predict_motion(delta_t)
|
||||
capsule.update_state(sim_clock, delta_t, new_state)
|
||||
|
||||
# Prevent infinite loop - if we're still above surface, landing result
|
||||
if new_state.altitude <= 0:
|
||||
return show_landing(sim_clock, capsule)
|
||||
|
||||
|
||||
def handle_flyaway(sim_clock: SimulationClock, capsule: Capsule) -> bool:
|
||||
|
||||
Reference in new issue
Block a user