Difference between revisions of "B2.Body:getPosition"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | <br /> | + | <translate><br /> |
Returns the world body origin position.<br /> | Returns the world body origin position.<br /> | ||
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number), (number) = b2.Body:getPosition() | (number), (number) = b2.Body:getPosition() | ||
</source> | </source> | ||
=== Return values === | === Return values === | ||
− | '''Returns''' (number) x coordinate of the body position<br/> | + | '''Returns''' (number) <translate>x coordinate of the body position</translate><br/> |
− | '''Returns''' (number) y coordinate of the body position<br/> | + | '''Returns''' (number) <translate>y coordinate of the body position</translate><br/> |
Revision as of 13:33, 23 August 2018
Available since: Gideros 2011.6
Description
Returns the world body origin position.
(number), (number) = b2.Body:getPosition()
Return values
Returns (number) x coordinate of the body position
Returns (number) y coordinate of the body position