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