Difference between revisions of "B2.RevoluteJoint:getMotorTorque"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | <br /> | + | <translate><br /> |
Returns the current motor torque given the inverse time step. Unit is N*m. <br /> | Returns the current motor torque given the inverse time step. Unit is N*m. <br /> | ||
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number) = b2.RevoluteJoint:getMotorTorque(inv_dt) | (number) = b2.RevoluteJoint:getMotorTorque(inv_dt) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''inv_dt''': (number) | + | '''inv_dt''': (number) <translate></translate> <br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) The current motor torque given the inverse time step. Unit is N*m<br/> | + | '''Returns''' (number) <translate>The current motor torque given the inverse time step. Unit is N*m</translate><br/> |
Revision as of 13:34, 23 August 2018
Available since: Gideros 2011.6
Description
Returns the current motor torque given the inverse time step. Unit is N*m.
(number) = b2.RevoluteJoint:getMotorTorque(inv_dt)
Parameters
inv_dt: (number)
Return values
Returns (number) The current motor torque given the inverse time step. Unit is N*m