Difference between revisions of "Body:getAngularDamping"
m (1 revision: Importing from potato (again).) |
m (→See Also: Add some related functions) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
Gets the Angular damping of the Body | Gets the Angular damping of the Body | ||
Line 21: | Line 20: | ||
== See Also == | == See Also == | ||
* [[parent::Body]] | * [[parent::Body]] | ||
+ | * [[Body:setAngularDamping]] | ||
+ | * [[Body:getLinearDamping]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Gets the Angular damping of the Body | + | {{#set:Description=Gets the Angular damping of the Body.}} |
− | }} | + | {{#set:Since=000}} |
+ | == Other Languages == | ||
+ | {{i18n|Body:getAngularDamping}} |
Latest revision as of 19:17, 25 November 2019
Gets the Angular damping of the Body
The angular damping is the rate of decrease of the angular velocity over time: A spinning body with no damping and no external forces will continue spinning indefinitely. A spinning body with damping will gradually stop spinning.
Damping is not the same as friction - they can be modelled together. However, only damping is provided by Box2D (and LOVE).
Damping parameters should be between 0 and infinity, with 0 meaning no damping, and infinity meaning full damping. Normally you will use a damping value between 0 and 0.1.
Function
Synopsis
damping = Body:getAngularDamping( )
Arguments
None.
Returns
number damping
- The value of the angular damping.
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