B2.Body:setPosition: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets the world body origin position.<br /> <br /> <source lang="lua"> = b2.Body:setPosition(xy,..."
 
No edit summary
Line 6: Line 6:
<br />
<br />
<source lang="lua">
<source lang="lua">
= b2.Body:setPosition(xy,)
b2.Body:setPosition(x,y)
</source>
</source>
'''x:''' (number) x coordinate of the position ''''''<br/>
'''x''': (number) x coordinate of the position ''''''<br/>
'''y:''' (number) y coordinate of the position ''''''<br/>
'''y''': (number) y coordinate of the position ''''''<br/>

Revision as of 09:21, 23 August 2018

Available since: Gideros 2011.6

Description


Sets the world body origin position.

 b2.Body:setPosition(x,y)

'x: (number) x coordinate of the position '
'y: (number) y coordinate of the position '