GetTransformedVector

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Returns the transformed vector according to the object's current matrix :<br>mainly used to transform a local coordinate vector in global coordinate vec = getTransformedVect...")
 
m
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
Returns the transformed vector according to the object's current matrix :<br>mainly used to transform a local coordinate vector in global coordinate
+
{{lua-function|getTransformedVector|object, vector}}
 +
 
 +
Returns the transformed vector according to the object's current matrix. Mainly used to transform a local coordinate vector in global coordinate.
 +
 
 +
{{lua-function-param|object|object to operate on}}
 +
{{lua-function-param|vector|vector}}
  
 
  vec = getTransformedVector(object, vec3(x, y, z))
 
  vec = getTransformedVector(object, vec3(x, y, z))
 +
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Transformation]]

Latest revision as of 01:21, 9 February 2014

getTransformedVector(object, vector)

Returns the transformed vector according to the object's current matrix. Mainly used to transform a local coordinate vector in global coordinate.

  • object : object to operate on
  • vector : vector
vec = getTransformedVector(object, vec3(x, y, z))
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox