Skip to content

Real-time N-body gravitational system simulator built with C++ and OpenGL

Notifications You must be signed in to change notification settings

killvxk/heliosim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelioSim

A real-time, WebAssembly-powered N-body gravitational system simulator built with C++, OpenGL ES 3.0, GLFW, and Emscripten running directly in your browser. Its features include predicitve orbit trails, collision, time controls and body spawning.

Live demo

Demo GIF

Controls

Action Description
Left Drag Orbit camera
Scroll/Pinch Zoom in/out
Shift/Two-Finger Drag Pan camera target
Resize window Viewport adjusts dynamically

Build Instructions

Requirements

Build & Run

make

This will compile main.cpp to WebAssembly via emcc and launch your default browser automatically.

To enable the touch emulator (for testing touch input with a mouse on desktop):

make TOUCH_EMULATOR=1

To clean:

make clean

Third-Party Libraries

Library License Usage
GLM MIT Math library for OpenGL
TouchEmulator (Hammer.js) MIT Desktop touch event emulation for development

About

Real-time N-body gravitational system simulator built with C++ and OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 66.3%
  • HTML 32.1%
  • Makefile 1.6%