Contents

dampingFactor

The damping factor affecting all the cloth bodies in the simulation. The expected range is between 0 and 1 (included).

Declaration

var dampingFactor: Float { get set }

Discussion

Damping reduces particle velocities each time step, simulating drag from the surrounding medium. A value of 0 does not damp the body at all, so the velocities of the particles are unaltered. A value of 1 damps all movement, such that the particle velocities remain at zero.

The default value is 0

See Also

Applying forces