Skip to content

Orbital simulation written in C visualized with Raylib, more complete orbital physics is represented here

Notifications You must be signed in to change notification settings

david4shure/c_orbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Orbit is an orbital simulation written in C, using raylib

Narrated Demo

View the demo video with narration

Features

  • 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)

Upcoming Features

  • 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

Releases

No releases published

Packages

No packages published