B2.Body:setLinearVelocity: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 8: Line 8:
  b2.Body:setLinearVelocity(x,y)
  b2.Body:setLinearVelocity(x,y)
</source>
</source>
'''x''': (number) x coordinate of the linear velocity ''''''<br/>
=== Parameters ===
'''y''': (number) y coordinate of the linear velocity ''''''<br/>
'''x''': (number) x coordinate of the linear velocity <br/>
'''y''': (number) y coordinate of the linear velocity <br/>

Revision as of 09:37, 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