B2.Body:applyTorque: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== <translate>Description</translate> ===
'''Class:''' [[b2.Body]]<br/>
<translate><br />
 
Applies a torque. This affects the angular velocity without affecting<br />
=== Description ===
the linear velocity of the center of mass. This wakes up the body.<br />
Applies a torque. This affects the angular velocity without affecting the linear velocity of the center of mass.
<br /></translate>
 
<source lang="lua">
This wakes up the body.
b2.Body:applyTorque(torque)
<syntaxhighlight lang="lua">
</source>
b2.Body:applyTorque(torque)
=== <translate>Parameters</translate> ===
</syntaxhighlight>
'''torque''': (number) <translate>, usually in N-m</translate> <br/>
 
=== Parameters ===
'''torque''': (number) usually in N-m<br/>
 
{{B2.Body}}

Latest revision as of 21:48, 30 April 2025