B2.Body:getLinearVelocity

From GiderosMobile
Revision as of 13:35, 23 August 2018 by Hgy29 (talk | contribs)

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