AddTorque
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 3: | Line 3: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Physics]] |
Revision as of 19:32, 4 February 2014
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).