shreshth@london:~/projects

cat geodesics.md

Schwarzschild geodesics

C++ · WebAssembly · WebGL 2 · RK4

Hamiltonian geodesic dynamics with adaptive RK4 integration, compiled to WebAssembly. The light bends because the equations say it must.

Live demo with orbital camera, Doppler, lensing-grid and Hamiltonian-error modes.

ls links/