More Algorithm/Code N-Body Simulation Information

These equations/definitions are not needed for this project but
may help you understand the video's algorithm/code better.

Force, Mass, and Accelerations

F = m*a F force on an object m mass of an object a acceleration

Distance Traveled Under Acceleration

d = v*Δt + ½*a*Δt2 Finds the distance traveled (d) of an object with an initial velocity (v), acceleration (a), and time (Δt) traveled. d distance traveled v initial velocity (speed and direction) Δt time traveled a acceleration

Note: A mass accelerating at 32 f/s2 will travel 16 feet in one second, not 32 feet.

The Gravitation Force Between Two Objects

G*m1*m2 F = ------- r2 F is an attractive force acting along a line joining the two centers of mass G gravitational constant m1 mass of object 1 m2 mass of object 2 r distance between the center of the two masses

Momentum

Note: Newton's first law states that every object will remain at rest or in uniform motion in a straight line unless acted on by an external force.

Momentum is a measure of how much motion an object has. It is determined by its mass and velocity. Essentially, it reflects how difficult it is to stop a moving object, with more momentum indicating greater resistance to change in motion. (e.g. A truck is harder to stop than a bicycle.)

p = m*v p object's momentum m object's mass v object's velocity (speed and direction)

A force applied to an object for a specific time interval will cause a change in its momentum.

In other words, To change the momentum of an object, you need to either change its mass or its velocity, or both.

Δp = m*Δv Δp change in momentum m mass (does not change in this project) Δv change in velocity (speed and direction)

Definitions

Mass is a fundamental property of matter that quantifies the amount of inertia or resistance to acceleration an object possesses. Mass is different from weight, which is a force due to gravity.

Force is an influence that can cause an object to change its velocity unless counterbalanced by other forces.

Acceleration is the rate of change of the velocity of an object with respect to time.

Momentum is a measure of how much motion an object has, determined by its mass and velocity. In simpler terms, it is "mass in motion". Essentially, it reflects how difficult it is to stop a moving object, with more momentum indicating greater resistance to change in motion. ( Momentum - Wilipedia)