GetRotatedVector
(Difference between revisions)
(Created page with "Returns the rotated vector according to the object current matrix : vec = getRotatedVector(object, vec3(x, y, z)) Example : vec = getRotatedVector(object, vec3(1, 0, 0)) ...") |
Dahnielson (Talk | contribs) |
||
Line 6: | Line 6: | ||
vec = getRotatedVector(object, vec3(1, 0, 0)) -- returns the rotated x axis of the object | vec = getRotatedVector(object, vec3(1, 0, 0)) -- returns the rotated x axis of the object | ||
+ | |||
+ | [[Category:Lua scripting]] |
Revision as of 18:03, 4 February 2014
Returns the rotated vector according to the object current matrix :
vec = getRotatedVector(object, vec3(x, y, z))
Example :
vec = getRotatedVector(object, vec3(1, 0, 0)) -- returns the rotated x axis of the object