Gravity Simulation
This sketch is an example of the physics of an orbiting object.
The orbiting objects have three vectors that determine movement, these
vectors are position, velocity, and acceleration. Position determines where the
Object is drawn, velocity is how much the object changes position every draw
frame and acceleration is what is calculated every draw cycle to adjust the velocity.
The circles start off with a red color, they then range from red to blue based on their largest
velocity.
Click to add more Circles for a maximum of 500.
Check out the code here!
github.com/lucas6238/GravityModel