GetInverseVector
From MaratisWiki
(Difference between revisions)
(Created page with "Returns the inverse vector according to the object current matrix :<br>mainly used to transform a global coordinate vector in the object's local coordinates vec = getInverse...") |
Dahnielson (Talk | contribs) m |
||
(4 intermediate revisions by one user not shown) | |||
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. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
+ | {{lua-function-param|vector|vector}} | ||
vec = getInverseVector(object, vec3(x, y, z)) | vec = getInverseVector(object, vec3(x, y, z)) | ||
+ | |||
+ | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Transformation]] |
Latest revision as of 00:21, 9 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.
-
object
: object to operate on -
vector
: vector
vec = getInverseVector(object, vec3(x, y, z))