SetGravity
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) m |
Dahnielson (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{lua-function|setGravity|gravity}} | {{lua-function|setGravity|gravity}} | ||
− | Set a scene gravity | + | Set a scene gravity. |
+ | |||
+ | {{lua-function-param|gravity|gravity constant}} | ||
gravity = {0, 0, -0.98} | gravity = {0, 0, -0.98} |
Latest revision as of 00:22, 9 February 2014
setGravity(gravity)
Set a scene gravity.
-
gravity
: gravity constant
gravity = {0, 0, -0.98} setGravity(gravity) -- set current scene gravity setGravity(scene2, gravity) -- set scene2 gravity