Collider:getLocalPoint

Edit

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



Arguments

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

Returns

NameTypeDescription
xnumber The x position of the local-space point.
ynumber The y position of the local-space point.
znumber The z position of the local-space point.

Arguments

NameTypeDescription
pointVec3 The world point.

Returns

NameTypeDescription
xnumber The x position of the local-space point.
ynumber The y position of the local-space point.
znumber The z position of the local-space point.

See also