Collider:getMassData

Edit

Computes mass properties for the Collider.

cx, cy, cz, mass, inertia = Collider:getMassData()

Arguments

None

Returns

NameTypeDescription
cxnumber The x position of the center of mass.
cynumber The y position of the center of mass.
cznumber The z position of the center of mass.
massnumber The computed mass of the Collider.
inertiatable A 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.

See also