Collider:getLocalVector

Converts a direction vector from world space to local space.

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

Arguments

NameTypeDescription
wxnumberThe x component of the world vector.
wynumberThe y component of the world vector.
wznumberThe z component of the world vector.

Returns

NameTypeDescription
xnumberThe x coordinate of the local vector.
ynumberThe y coordinate of the local vector.
znumberThe z coordinate of the local vector.

See also