Gravity simulation in 3D

A 3D gravity simulation built in C++ using WASM and WebGL2. Look with the mouse, move using WASD and press M to open the control window. Click on the canvas to lock the mouse pointer.

Try adding a planet with position (0, 2, 0), initial velocity (1.5, 0, 0), radius 0.05 and density 1.