KennethChilds/zig-revolution
Celestial body revolution in Zig using Raylib
masterThis Zig and CPP project implements a basic orbital revolution simulation with raylib-zig bindings and the raylib-cpp bindings, respectively.
The simulation models objects moving in circular orbits, a fundamental concept in celestial mechanics. Key aspects of the implementation include:
An orbital revolution is represented by:
To run the zig project, use the following command:
git clone https://github.com/KennethChilds/zig-revolution.git
cd zig-revolution
zig build run
To run the cpp project:
cd cpp
g++ main.cpp -o main -IC:\raylib\raylib\src -LC:\raylib\raylib\src -lraylib -lopengl32 -lgdi32 -lwinmm -lkernel32 -w; ./main
If your raylib install is not in the C: drive, change the command as necessary.
Play around with values and watch what happens!