Difference between revisions of "B2.Body:applyTorque"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
<languages />
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[Special:MyLanguage/b2.Body|b2.Body]]<br/>
 +
 
=== Description ===
 
=== Description ===
<br />
+
Applies a torque. This affects the angular velocity without affecting the linear velocity of the center of mass.
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 />
+
This wakes up the body.
<br />
+
<syntaxhighlight lang="lua">
<source lang="lua">
+
b2.Body:applyTorque(torque)
b2.Body:applyTorque(torque)
+
</syntaxhighlight>
</source>
+
 
'''torque''': (number) , usually in N-m ''''''<br/>
+
=== Parameters ===
 +
'''torque''': (number) usually in N-m <br/>
 +
 
 +
{{B2.Body}}

Latest revision as of 17:57, 12 July 2023