Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

JointSuspension2D.dampingRatio

var dampingRatio: float;
float dampingRatio;
dampingRatio as float

Description

The amount by which the suspension spring force is reduced in proportion to the movement speed.

The suspension spring will oscillate with a certain frequency as forces are added and removed from it. The higher the damping ratio, the quicker the oscillation will die down to zero.