Collider:getWorldVector

Converts a direction vector from local space to world space.

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

Arguments

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.

Returns

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.

See also