B2.Body:setLinearVelocity: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 2: Line 2:
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
=== Description ===
<br />
<translate><br />
Sets the linear velocity of the center of mass.<br />
Sets the linear velocity of the center of mass.<br />
<br />
<br /></translate>
<source lang="lua">
<source lang="lua">
  b2.Body:setLinearVelocity(x,y)
  b2.Body:setLinearVelocity(x,y)
</source>
</source>
=== Parameters ===
=== Parameters ===
'''x''': (number) x coordinate of the linear velocity <br/>
'''x''': (number) <translate>x coordinate of the linear velocity</translate> <br/>
'''y''': (number) y coordinate of the linear velocity <br/>
'''y''': (number) <translate>y coordinate of the linear velocity</translate> <br/>

Revision as of 12:32, 23 August 2018

Available since: Gideros 2011.6

Description


Sets the linear velocity of the center of mass.

 b2.Body:setLinearVelocity(x,y)

Parameters

x: (number) x coordinate of the linear velocity
y: (number) y coordinate of the linear velocity