Contents

damping

A factor that reduces the body’s linear velocity.

Declaration

var damping: CGFloat { get set }

Discussion

This property simulates the effect of fluid friction or air resistance on a body. A damping factor of 0.0 specifies no loss in velocity, and a damping factor of 1.0 prevents the body from moving. The default damping factor is 0.1.

See Also

Defining a Body’s Physical Properties