Difference between revisions of "B2.Body:getLinearVelocity"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | <br /> | + | <translate><br /> |
Returns the linear velocity of the center of mass.<br /> | Returns the linear velocity of the center of mass.<br /> | ||
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number), (number) = b2.Body:getLinearVelocity() | (number), (number) = b2.Body:getLinearVelocity() | ||
</source> | </source> | ||
=== Return values === | === Return values === | ||
− | '''Returns''' (number) x vector of the linear velocity<br/> | + | '''Returns''' (number) <translate>x vector of the linear velocity</translate><br/> |
− | '''Returns''' (number) y vector of the linear velocity<br/> | + | '''Returns''' (number) <translate>y vector of the linear velocity</translate><br/> |
Revision as of 13:35, 23 August 2018
Available since: Gideros 2011.6
Description
Returns the linear velocity of the center of mass.
(number), (number) = b2.Body:getLinearVelocity()
Return values
Returns (number) x vector of the linear velocity
Returns (number) y vector of the linear velocity