Difference between revisions of "B2.Body:setPosition"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | <br /> | + | <translate><br /> |
Sets the world body origin position.<br /> | Sets the world body origin position.<br /> | ||
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
b2.Body:setPosition(x,y) | b2.Body:setPosition(x,y) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''x''': (number) x coordinate of the position <br/> | + | '''x''': (number) <translate>x coordinate of the position</translate> <br/> |
− | '''y''': (number) y coordinate of the position <br/> | + | '''y''': (number) <translate>y coordinate of the position</translate> <br/> |
Revision as of 13:35, 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