Repository files navigation C Orbit is an orbital simulation written in C, using raylib
Full Keplerian orbital simulation
Orbital position is computed by solving for Kepler's universal anomaly & Lagrange Functions (stumpc, stumps)
Code available here
Elliptical, Parabolic, and Hyperbolic orbits are supported
Uses rv_to_classical_elements and classical_elements_to_rv to convert between physical states & fully qualified Keplerian orbits
Orbital lines drawing (example )
Sphere of influence sphere rendered
Fully generalized patched conics
Camera functions to traverse orbital tree (J, K, H, L – basically Vim-style controls)
Full orbital propagation using numerical integration
2-body trajectories (e.g., to the Moon and back)
Load orbital data from simple text files that define arbitrary hierarchies of bodies and their orbital elements
About
Orbital simulation written in C visualized with Raylib, more complete orbital physics is represented here
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.