Skip to content

Gravitational N-Body simulator

License

Notifications You must be signed in to change notification settings

Yilmaz4/NBodiment

Repository files navigation

A gravitational N-body simulator with path-tracing, rigid body physics and rotational mechanics, made in C++ and OpenGL. For my highschool physics project. Finished as of 25/03/24

2024-05-22.00-55-52.mp4

Controls

WASD - camera movement
Q - pause/resume simulation
E - reverse time
R/F - speed up/slow down simulation
G - toggle global illumination
Space/Left Shift - camera up/down
Left Ctrl - lock/unlock mouse
Mouse Scroll - adjust camera speed
Left Click - select
Double Left Click - follow
Del - delete selected particle
X - follow selected particle
F11 - enter/exit fullscreen
ESC - exit

Path tracing

Elastic collisions