Collider:getLocalPoint

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

x, y, z = Collider:getLocalPoint(wx, wy, wz)

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.

See also