GetRotation
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 12: | Line 12: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Object]] |
Revision as of 18:26, 4 February 2014
Get the current object rotation in 3d space.
objectRot = getRotation(object)
Then you can use your object coordinates like this :
objectpos[1] : rotation on X axis
objectpos[2] : rotation on Y axis
objectpos[3] : rotation on Z axis