SetGravity

(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
 
     setGravity(gravity) -- set current scene gravity
 
     setGravity(gravity) -- set current scene gravity
 
     setGravity(scene2, gravity) -- set scene2 gravity
 
     setGravity(scene2, gravity) -- set scene2 gravity
 +
 +
[[Category:Lua scripting]]

Revision as of 18:05, 4 February 2014

Set a scene gravity

   gravity = {0, 0, -0.98}
   setGravity(gravity) -- set current scene gravity
   setGravity(scene2, gravity) -- set scene2 gravity
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox