Difference between revisions of "B2.World:setGravity"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | <languages /> |
− | === Description === | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | + | '''<translate>Class</translate>:''' [[Special:MyLanguage/b2.World|b2.World]]<br/> | |
− | Sets the gravity vector. | + | |
− | < | + | === <translate>Description</translate> === |
− | + | Sets the gravity vector. | |
− | + | <syntaxhighlight lang="lua"> | |
− | </ | + | b2.World:setGravity(gravityx,gravityy) |
− | === Parameters === | + | </syntaxhighlight> |
− | '''gravityx''': (number) the x component the gravity <br/> | + | |
− | '''gravityy''': (number) the y component the gravity <br/> | + | === <translate>Parameters</translate> === |
+ | '''gravityx''': (number) <translate>the x 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