B2.Body:setPosition: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
=== <translate>Description</translate> ===
<translate><br />
<translate><br />
Sets the world body origin position.<br />
Sets the world body origin position.<br />
Line 8: Line 8:
  b2.Body:setPosition(x,y)
  b2.Body:setPosition(x,y)
</source>
</source>
=== Parameters ===
=== <translate>Parameters</translate> ===
'''x''': (number) <translate>x coordinate of the position</translate> <br/>
'''x''': (number) <translate>x coordinate of the position</translate> <br/>
'''y''': (number) <translate>y coordinate of the position</translate> <br/>
'''y''': (number) <translate>y coordinate of the position</translate> <br/>

Revision as of 06:30, 24 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