Body

Body body

Fields

Field
Type
Description

Shape

The size and shape of the Body's collision boundaries.

float

The mass of the physics body, which dictates how effective forces are upon it.

Vector

The XYZ vector of force being applied to the physics body on the current update.

Vector

The current velocity of the physics body, for how fast it is moving in an XYZ direction.

Methods

Method
Parameters
Returns
Description

force: vector

None

Apply a one time XYZ force to a physics body. It is applied on the next update.

None

width: float length: float depth: float

Get the dimensions of a box shaped Body. Errors if the Body is not a Box.

None

radius: float

Get the radius of a Body. Errors if the Body is not a Sphere.

Last updated