How pandolarek/orbitfx works
OrbitFX is a JavaFX 2D gravity simulator. The documented workflow is to launch into a paused system, initialize it, select and edit a body while paused, then run or pause the simulation while observing its motion. Major capabilities include fixed-timestep Euler physics, adjustable time scaling, and momentum-conserving inelastic collisions. The available source excerpt covers only the module declaration; class responsibilities and wiring are therefore inferred from names and documented behavior, and uncertain connections are shown as unverified.
Main entry points: UIManager.java UI manager · Game.java Simulation loop · Main.java Application entry · hello-view.fxml JavaFX view
Components 7
Application
- Application entry
src/main/java/org/example/orbitfx/Main.java - JavaFX view
src/main/resources/org/example/orbitfx/hello-view.fxml
Simulation
- Simulation loop
src/main/java/org/example/orbitfx/Game.java - Celestial bodies
src/main/java/org/example/orbitfx/Planet.java
User interaction
- UI manager
src/main/java/org/example/orbitfx/UIManager.java - Camera focus
src/main/java/org/example/orbitfx/Camera.java
Other components
- User
Connections 6
- User → Application entry: launches
README.md - User → UI manager: controls
README.md - UI manager → JavaFX view: updates
- UI manager → Simulation loop: controls
- UI manager → Camera focus: focuses
- Simulation loop → Celestial bodies: simulates