https://dzggwehur.github.io/GravSim/ocsef3%20stuff/build-web/index.html <- PUBLIC WEB LINK
What it does
It calculates N-body gravitational physics using Newtonian gravity
$$F = G \frac{m_1 m_2}{r^2}$$
and uses a 4th-order Runge-Kutta method. $$y_{n+1} = y_n + \frac{h}{6}(k_1 + 2k_2 + 2k_3 + k_4)$$
$$k_1 = f(t_n, y_n)$$
$$k_2 = f\left(t_n + \frac{h}{2}, y_n + h\frac{k_1}{2}\right)$$
$$k_3 = f\left(t_n + \frac{h}{2}, y_n + h\frac{k_2}{2}\right)$$
$$k_4 = f(t_n + h, y_n + hk_3)$$
How we built it
Uses Raylib and VS2026, web port was made with Emscripten WASM.
Challenges we ran into
It took a while to fix up Raylib classes to use 64-bit doubles and to get trajectories right
Accomplishments that we're proud of
The Runge-Kutta method integration