B2.Body:getLinearVelocity

This page contains changes which are not marked for translation.


Available since: Gideros 2011.6
Class: b2.Body

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