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
wxnumberThe x coordinate of the world point.
wynumberThe y coordinate of the world point.
wznumberThe z coordinate of the world point.

Returns

NameTypeDescription
xnumberThe x position of the local-space point.
ynumberThe y position of the local-space point.
znumberThe z position of the local-space point.

See also