B2.Body:setLinearVelocity: 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 linear velocity of the center of mass.<br /> | Sets the linear velocity of the center of mass.<br /> | ||
| Line 8: | Line 8: | ||
b2.Body:setLinearVelocity(x,y) | b2.Body:setLinearVelocity(x,y) | ||
</source> | </source> | ||
=== Parameters === | === <translate>Parameters</translate> === | ||
'''x''': (number) <translate>x coordinate of the linear velocity</translate> <br/> | '''x''': (number) <translate>x coordinate of the linear velocity</translate> <br/> | ||
'''y''': (number) <translate>y coordinate of the linear velocity</translate> <br/> | '''y''': (number) <translate>y coordinate of the linear velocity</translate> <br/> | ||
Revision as of 06:26, 24 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