GetRotatedVector

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