GetRotatedVector

(Difference between revisions)
Jump to: navigation, search
(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)) ...")
 
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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox