GetRotatedVector

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
 +
{{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))
  
Example :
+
'''Example:'''
  
 
  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

Revision as of 18:47, 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