B2.Body:setPosition: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
b2.Body:setPosition(x,y) | b2.Body:setPosition(x,y) | ||
</source> | </source> | ||
'''x''': (number) x coordinate of the position | === Parameters === | ||
'''y''': (number) y coordinate of the position | '''x''': (number) x coordinate of the position <br/> | ||
'''y''': (number) y coordinate of the position <br/> | |||
Revision as of 09:58, 23 August 2018
Available since: Gideros 2011.6
Description
Sets the world body origin position.
b2.Body:setPosition(x,y)
Parameters
x: (number) x coordinate of the position
y: (number) y coordinate of the position