AddTorque
From MaratisWiki
(Difference between revisions)
(Created page with "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 i...") |
Dahnielson (Talk | contribs) m |
||
(3 intermediate revisions by one user not shown) | |||
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). | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
+ | {{lua-function-param|vector|vector}} | ||
+ | {{lua-function-param|local|local}} | ||
+ | |||
+ | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[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