B2.World:setGravity: Difference between revisions
From GiderosMobile
No edit summary |
m Text replacement - "</source>" to "</syntaxhighlight>" |
||
| (7 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) | ||
'''gravityx''': (number) the x component the gravity | </syntaxhighlight> | ||
'''gravityy''': (number) the y component the gravity | |||
=== <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 13: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