Collider:setMassData

Sets mass properties for the Collider.

Collider:setMassData(cx, cy, cz, mass, inertia)

Arguments

NameTypeDescription
cxnumberThe x position of the center of mass.
cynumberThe y position of the center of mass.
cznumberThe z position of the center of mass.
massnumberThe computed mass of the Collider.
inertiatableA table containing 6 values of the rotational inertia tensor matrix. The table contains the 3 diagonal elements of the matrix (upper left to bottom right), followed by the 3 elements of the upper right portion of the 3x3 matrix.

Returns

Nothing

See also