Difference between revisions of "B2.World:getGravity"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the gravity vector.<br /> <br /> <source lang="lua"> (number) (number), = b2.World:getG...") |
|||
Line 6: | Line 6: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) (number) | + | (number), (number) = b2.World:getGravity() |
</source> | </source> | ||
'''Returns''' (number) x component of gravity vector.<br/> | '''Returns''' (number) x component of gravity vector.<br/> | ||
'''Returns''' (number) y component of gravity vector.<br/> | '''Returns''' (number) y component of gravity vector.<br/> |
Revision as of 10:20, 23 August 2018
Available since: Gideros 2011.6
Description
Returns the gravity vector.
(number), (number) = b2.World:getGravity()
Returns (number) x component of gravity vector.
Returns (number) y component of gravity vector.