Collider:getLocalCenter

Edit

Returns the Collider's center of mass.

cx, cy, cz = Collider:getLocalCenter()

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.

See also