B2.Body:applyTorque: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 2: Line 2:
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
=== Description ===
<br />
<translate><br />
Applies a torque. This affects the angular velocity without affecting<br />
Applies a torque. This affects the angular velocity without affecting<br />
the linear velocity of the center of mass. This wakes up the body.<br />
the linear velocity of the center of mass. This wakes up the body.<br />
<br />
<br /></translate>
<source lang="lua">
<source lang="lua">
  b2.Body:applyTorque(torque)
  b2.Body:applyTorque(torque)
</source>
</source>
=== Parameters ===
=== Parameters ===
'''torque''': (number) , usually in N-m <br/>
'''torque''': (number) <translate>, usually in N-m</translate> <br/>

Revision as of 12:38, 23 August 2018

Available since: Gideros 2011.6

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