AddTorque

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
Line 2: Line 2:
  
 
Add a torque (angular force) to an object. Make sure Physics and the mass of the object is enabled in the object proprieties, otherwise it won't rotate. The "local" argument is optional (local coordinates), without it the transformation is global (global coordinates).
 
Add a torque (angular force) to an object. Make sure Physics and the mass of the object is enabled in the object proprieties, otherwise it won't rotate. The "local" argument is optional (local coordinates), without it the transformation is global (global coordinates).
 +
 +
{{lua-function-param|object|object to operate on}}
 +
{{lua-function-param|vector|vector}}
 +
{{lua-function-param|local|local}}
  
 
[[Category:Lua scripting]]
 
[[Category:Lua scripting]]
 
[[Category:Lua function]]
 
[[Category:Lua function]]
 
[[Category:Physics]]
 
[[Category:Physics]]

Latest revision as of 01:27, 9 February 2014

addTorque(object, vector, local)

Add a torque (angular force) to an object. Make sure Physics and the mass of the object is enabled in the object proprieties, otherwise it won't rotate. The "local" argument is optional (local coordinates), without it the transformation is global (global coordinates).

  • object : object to operate on
  • vector : vector
  • local : local
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox