PhysicalObject
class PhysicalObject
Represents a physical-object and its intrinsic properties. This is useful for approximating extended objects as a uniform, continous body mass (ignoring its particulate composition).
flowchart TD
PhysicalObject --> position
Summary
Properties from PhysicalObject
Vector<3> |
|
Array<PhysicalInteraction> |
All causal interactions with other objects |
number |
The mass of this object in kilograms. |
Vector<3> |
The absolute position of this object's center of mass (in the universal reference frame) |
Vector<3> |
The absolute velocity of this object (in the universal reference frame) |
Public Properties
bounds: Vector<3>
Vector<3>
The mesh enclosing this object. By default, it is a "point" object at the its own position.
interactions: Array<PhysicalInteraction>
Array<PhysicalInteraction>
All causal interactions with other objects
position: Vector<3> = [0, 0, 0]
Vector<3>
The absolute position of this object's center of mass (in the universal reference frame)
velocity: Vector<3> = [0, 0, 0]
Vector<3>
The absolute velocity of this object (in the universal reference frame)