Adds a body to the system. The state variables of the body will become part of the state vector of the system. The state variables of the body will be updated each time the system is advanced in time.
The body to be added to the system
Adds a geometric constraint to the system. Geometric constraints are applied after the force and torques have been computed and before drift forces and torques.
The geometric constraint to be added to the system.
Adds a force law that is designed to compensate for numerical drift in the system. A drift law is usually small and may take the form of a spring and/or damping force. The drift laws are applied after any geometric constraints have been applied.
The drift force law to be applied.
Adds a force law to the system.
The force law to be added to the system.
Adds a torque law to the system.
The torque law to be added to the system.
Advances the Physics model by the specified time interval, Δt * uomTime.
The time interval.
Optional
uomTime: UnitThe optional unit of measure for the time interval.
Removes a body from the system.
The body to be removed from the system.
Removes a geometric constraint from the system.
The geometric constraint to be removed from the system.
Removes a force law that is designed to compensate for numerical drift in the system.
The drift force law to be removed.
Removes a force law from the system.
The force law to be removed.
Removes a torque law from the system.
The torque law to be removed from the system.
The total energy (kinetic and potential) of the system.
Generated using TypeDoc
The Physics Engine specialized to 2+1 dimensions with a Spacetime metric.