GetRotatedVector

From MaratisWiki
Revision as of 00:20, 9 February 2014 by Dahnielson (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

getRotatedVector(object, vector)

Returns the rotated vector according to the object current matrix.

  • object : object to operate on
  • vector : vector
vec = getRotatedVector(object, vec3(x, y, z))

Example:

vec = getRotatedVector(object, vec3(1, 0, 0)) -- returns the rotated x axis of the object
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox