Represents a Newtonian Gravitational force object.
Create a new Gravity with the provided gravitational constant.
gravitational constant.
Readonly
Gravitational constant.
6.674e-11 Copy
6.674e-11
Calculate and return the forces acting on the bodies. arr[i] represents the force acting on the ith body as a result of all other bodies.
celestial bodies
forces
Generated using TypeDoc
Represents a Newtonian Gravitational force object.