Difference between revisions of "Body:getLinearDamping"

m (1 revision: Importing from potato (again).)
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
 
Gets the linear damping of the Body.
 
Gets the linear damping of the Body.
  
Line 5: Line 4:
  
  
Damping is not the same as friction - they can be modelled together. However, only damping is provided by Box2D (and LOVE).
+
Damping is not the same as [[Fixture:setFriction|friction]] - they can be modelled together.
  
 
== Function ==
 
== Function ==
Line 19: Line 18:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Gets the linear damping of the Body.
+
{{#set:Description=Gets the linear damping of the Body.}}
}}
+
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|Body:getLinearDamping}}

Latest revision as of 20:28, 18 May 2015

Gets the linear damping of the Body.

The linear damping is the rate of decrease of the linear velocity over time. A moving body with no damping and no external forces will continue moving indefinitely, as is the case in space. A moving body with damping will gradually stop moving.


Damping is not the same as friction - they can be modelled together.

Function

Synopsis

damping = Body:getLinearDamping( )

Arguments

None.

Returns

number damping
The value of the linear damping.

See Also


Other Languages