Difference between revisions of "B2.World:setGravity"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
Sets the gravity vector.<br /> | Sets the gravity vector.<br /> | ||
Line 8: | Line 8: | ||
b2.World:setGravity(gravityx,gravityy) | b2.World:setGravity(gravityx,gravityy) | ||
</source> | </source> | ||
− | === Parameters === | + | === <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/> |
Revision as of 07:28, 24 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