Collider:getLocalPoint

Edit

Transforms a point from world coordinates into local coordinates relative to the Collider.



Arguments

NameTypeDescription
wxnumber The x component of the world point.
wynumber The y component of the world point.
wznumber The z component of the world point.

Returns

NameTypeDescription
xnumber The x component of the local point.
ynumber The y component of the local point.
znumber The z component of the local point.

Arguments

NameTypeDescription
pointVec3 The world point.

Returns

NameTypeDescription
xnumber The x component of the local point.
ynumber The y component of the local point.
znumber The z component of the local point.

See also