AddTorque

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
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.
+
{{lua-function|addTorque|object, vector, local}}
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).
  
 
[[Category:Lua scripting]]
 
[[Category:Lua scripting]]
 
[[Category:Lua function]]
 
[[Category:Lua function]]
 
[[Category:Physics]]
 
[[Category:Physics]]

Revision as of 19:12, 8 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).

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox