WebGL Galaxy


This is a simple JS script that uses three.js to render star particles in a isothermal sphere potential (this makes a nice flat rotation curve). The star particles have their motion followed using a simple Leapfrog/Velocity Verlet integrator. You can interact with the galaxy by moving your cursor accross the field, and a perturbing mass will follow your mouse around.