Collider:setMassData
EditSets mass properties for the Collider.
Collider:setMassData(cx, cy, cz, mass, inertia)
Arguments
Name | Type | Description |
cx | number | The x position of the center of mass. |
cy | number | The y position of the center of mass. |
cz | number | The z position of the center of mass. |
mass | number | The computed mass of the Collider. |
inertia | table | 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. |
Returns
Nothing