Difference between revisions of "RevoluteJoint:getMotorTorque"

(https://github.com/love2d/love/issues/1731)
 
Line 3: Line 3:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
f = RevoluteJoint:getMotorTorque( )
+
f = RevoluteJoint:getMotorTorque(invdt)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
None.
+
{{param|number|invdt|Inverse delta time since last frame (1 / dt)}}
 
=== Returns ===
 
=== Returns ===
 
{{param|number|f|The current motor force, in Nm.}}
 
{{param|number|f|The current motor force, in Nm.}}

Latest revision as of 16:27, 12 November 2021

Get the current motor force.

Function

Synopsis

f = RevoluteJoint:getMotorTorque(invdt)

Arguments

number invdt
Inverse delta time since last frame (1 / dt)

Returns

number f
The current motor force, in Nm.

See Also


Other Languages