Body:getLinearDamping

Body:getLinearDamping

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


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Body:getLinearDamping

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部