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>
bounds
Array<PhysicalInteraction>
interactions

All causal interactions with other objects

number
mass = 0

The mass of this object in kilograms.

Vector<3>
position = [0, 0, 0]

The absolute position of this object's center of mass (in the universal reference frame)

Vector<3>
velocity = [0, 0, 0]

The absolute velocity of this object (in the universal reference frame)

Public Properties


bounds PhysicalObject.js:38
bounds: Vector<3>

Vector<3>

The mesh enclosing this object. By default, it is a "point" object at the its own position.

interactions PhysicalObject.js:46
interactions: Array<PhysicalInteraction>

Array<PhysicalInteraction>

All causal interactions with other objects

mass PhysicalObject.js:14
mass: number = 0

number

The mass of this object in kilograms.

position PhysicalObject.js:22
position: Vector<3> = [0, 0, 0]

Vector<3>

The absolute position of this object's center of mass (in the universal reference frame)

velocity PhysicalObject.js:30
velocity: Vector<3> = [0, 0, 0]

Vector<3>

The absolute velocity of this object (in the universal reference frame)


Powered by webdoc!