GetInverseVector
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
Line 1: | Line 1: | ||
− | Returns the inverse vector according to the object current matrix | + | {{lua-function|getInverseVector|object, vector}} |
+ | |||
+ | Returns the inverse vector according to the object current matrix. Mainly used to transform a global coordinate vector in the object's local coordinates. | ||
vec = getInverseVector(object, vec3(x, y, z)) | vec = getInverseVector(object, vec3(x, y, z)) |
Revision as of 17:48, 8 February 2014
getInverseVector(object, vector)
Returns the inverse vector according to the object current matrix. Mainly used to transform a global coordinate vector in the object's local coordinates.
vec = getInverseVector(object, vec3(x, y, z))