Difference between revisions of "B2.World:setGravity"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<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. | + | <syntaxhighlight lang="lua"> |
− | < | + | b2.World:setGravity(gravityx,gravityy) |
− | + | </syntaxhighlight> | |
− | + | ||
− | </ | ||
=== <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}} |
Latest revision as of 14:27, 13 July 2023
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