B2.Body:applyTorque

From GiderosMobile
Revision as of 10:57, 3 September 2018 by Hgy29 (talk | contribs)


Available since: Gideros 2011.6
Class: b2.Body

Description


Applies a torque. This affects the angular velocity without affecting
the linear velocity of the center of mass. This wakes up the body.

 b2.Body:applyTorque(torque)

Parameters

torque: (number) , usually in N-m