GetRotatedVector
(Difference between revisions)
Dahnielson (Talk | contribs) m |
Dahnielson (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{lua-function|getRotatedVector|object, vector}} | {{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)) |
Revision as of 17:51, 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