Difference between revisions of "B2.World:setGravity"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Sets the gravity vector.<br />
 
Sets the gravity vector.<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
  b2.World:setGravity(gravityx,gravityy)
 
  b2.World:setGravity(gravityx,gravityy)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''gravityx''': (number) the x component the gravity <br/>
+
'''gravityx''': (number) <translate>the x component the gravity</translate> <br/>
'''gravityy''': (number) the y component the gravity <br/>
+
'''gravityy''': (number) <translate>the y component the gravity</translate> <br/>

Revision as of 14:34, 23 August 2018

Available since: Gideros 2011.6

Description


Sets the gravity vector.

 b2.World:setGravity(gravityx,gravityy)

Parameters

gravityx: (number) the x component the gravity
gravityy: (number) the y component the gravity