How springmomu/gfold-rocket-recovery-simulation works
Vector Thrust is a 2D/3D rocket-recovery simulation and guidance demonstration. Its principal 3D workflow advances a rigid-body vehicle, computes aerodynamic forces, runs staged autopilot guidance and landing optimization, then exposes simulation state and controls through a browser worker and WebGL cockpit. The repository also contains a documented 2D convex-landing simulator. The graph emphasizes the 3D runtime and meaningful visualization branches; unsampled UI wiring is omitted where no shown evidence establishes a specific link.
Main entry points: app.js Browser App · sim3d.py 3D Simulation · scene.js 3D Scene · guidance3d.py Staged Autopilot
Components 22
Flight Simulation
- Rigid Vehicle
rocket3d.py - Aerodynamics
aero3d.py - Wind Model
rocket3d.py - 3D Simulation
sim3d.py - 2D Simulator
main.py
Guidance and Control
- Staged Autopilot
guidance3d.py - G-FOLD Planner
guidance3d.py - Attitude Control
sim3d.py - 2D Guidance
guidance.py - Native Solver
native/src/lib.rs
Browser Experience
- Pyodide Bridge
web3d/sim_worker.py - Simulation Worker
web3d/sim_worker.js - Browser App
web3d/app.js
Visualization
- 3D Scene
web3d/scene.js - Cockpit HUD
web3d/hud.js - Flight Instruments
web3d/instruments.js - Wind Tunnel
web3d/tunnel.js - Flow Solver
web3d/fluid.js - Plume Effects
web3d/plume.js - WebGL Toolkit
web3d/gl.js - Scene Shaders
web3d/scene_shaders.js
Other components
- Pilot
Connections 23
- Pilot → Browser App: operates
README.md - Browser App → Simulation Worker: sends input
- Simulation Worker → Pyodide Bridge: calls bridge
- Pyodide Bridge → 3D Simulation: advances
web3d/sim_worker.py - Pyodide Bridge → 3D Simulation: reads state
web3d/sim_worker.py - 3D Simulation → Rigid Vehicle: steps
sim3d.py - 3D Simulation → Aerodynamics: configures
sim3d.py - 3D Simulation → Wind Model: uses
sim3d.py - 3D Simulation → Staged Autopilot: creates
sim3d.py - Staged Autopilot → G-FOLD Planner: plans
guidance3d.py - Staged Autopilot → Attitude Control: controls
sim3d.py - Aerodynamics → Rigid Vehicle: models forces
aero3d.py - Browser App → 3D Scene: renders
web3d/app.js - Browser App → Cockpit HUD: updates
web3d/app.js - Cockpit HUD → Flight Instruments: uses
web3d/hud.js - Browser App → Flow Solver: runs
web3d/app.js - Browser App → Plume Effects: uses
web3d/app.js - 3D Scene → WebGL Toolkit: draws with
web3d/scene.js - 3D Scene → Scene Shaders: uses
web3d/scene.js - 3D Scene → Plume Effects: uses
web3d/scene.js - Flow Solver → WebGL Toolkit: uses
web3d/fluid.js - Wind Tunnel → WebGL Toolkit: uses
web3d/tunnel.js - 2D Simulator → 2D Guidance: guides
main.py