Difference between revisions of "RevoluteJoint:getMotorTorque"
(https://github.com/love2d/love/issues/1731) |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Get the current motor force. | |
− | |||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | f = RevoluteJoint:getMotorTorque( ) | + | f = RevoluteJoint:getMotorTorque(invdt) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | + | {{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.}} | ||
Line 13: | Line 12: | ||
* [[parent::RevoluteJoint]] | * [[parent::RevoluteJoint]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Get the current motor force.}} |
+ | {{#set:Since=000}} | ||
+ | == Other Languages == | ||
+ | {{i18n|RevoluteJoint:getMotorTorque}} |
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info