GetRotatedVector
From MaratisWiki
Revision as of 17:51, 8 February 2014 by Dahnielson (Talk | contribs)
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