Collider:getLocalVector

Converts a direction vector from world space to local space.

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

Arguments

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

Returns

NameTypeDescription
xnumber The x coordinate of the local vector.
ynumber The y coordinate of the local vector.
znumber The z coordinate of the local vector.

See also