Difference between revisions of "B2.Body:getPosition"
From GiderosMobile
Line 8: | Line 8: | ||
(number), (number) = b2.Body:getPosition() | (number), (number) = b2.Body:getPosition() | ||
</source> | </source> | ||
+ | === Return values === | ||
'''Returns''' (number) x coordinate of the body position<br/> | '''Returns''' (number) x coordinate of the body position<br/> | ||
'''Returns''' (number) y coordinate of the body position<br/> | '''Returns''' (number) y coordinate of the body position<br/> |
Revision as of 10:44, 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