Difference between revisions of "B2.World:setGravity"

From GiderosMobile
Line 3: Line 3:
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/b2.World|b2.World]]<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/b2.World|b2.World]]<br/>
 +
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate><br />
+
Sets the gravity vector.
Sets the gravity vector.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
b2.World:setGravity(gravityx,gravityy)
+
b2.World:setGravity(gravityx,gravityy)
 
</source>
 
</source>
 +
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''gravityx''': (number) <translate>the x component the gravity</translate> <br/>
 
'''gravityx''': (number) <translate>the x component the gravity</translate> <br/>
 
'''gravityy''': (number) <translate>the y component the gravity</translate> <br/>
 
'''gravityy''': (number) <translate>the y component the gravity</translate> <br/>
 +
 +
{{B2.World}}

Revision as of 16:27, 18 February 2020