GetRotatedVector
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
Line 1: | Line 1: | ||
+ | {{lua-function|getRotatedVector|object, vector}} | ||
+ | |||
Returns the rotated vector according to the object current matrix : | Returns the rotated vector according to the object current matrix : | ||
vec = getRotatedVector(object, vec3(x, y, z)) | vec = getRotatedVector(object, vec3(x, y, z)) | ||
− | Example : | + | '''Example:''' |
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 |
Revision as of 17:47, 8 February 2014
getRotatedVector(object, vector)
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