nbody-vectors

by ohshima
See Code Download Embed
A gravity simulation with arbitrary number of mass with different weights. Set the initial condition to change the number of bodies and their initial conditions. black arrows show the velocity vector and blue ones show the acceleration.

Created May 1, 2021

Last updated May 4, 2021

Published May 4, 2021