GetInverseVector
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(2 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)) | ||
Line 5: | Line 10: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
[[Category:Lua function]] | [[Category:Lua function]] | ||
− | [[Category: | + | [[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))