GetTransformedPosition
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lua-function|getTransformedPosition|object}} | |
− | + | Returns the transformed position (global coordinates) of the object according to it's current matrix (useful if the object is linked to other objects). | |
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
+ | |||
+ | pos = getTransformedPosition(object) | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
[[Category:Lua function]] | [[Category:Lua function]] | ||
[[Category:Transformation]] | [[Category:Transformation]] |
Latest revision as of 00:19, 9 February 2014
getTransformedPosition(object)
Returns the transformed position (global coordinates) of the object according to it's current matrix (useful if the object is linked to other objects).
-
object
: object to operate on
pos = getTransformedPosition(object)