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> === | ||
− | + | Sets the gravity vector. | |
− | Sets the gravity vector. | ||
− | |||
<source lang="lua"> | <source lang="lua"> | ||
− | + | 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
Available since: Gideros 2011.6
Class: b2.World
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