Contents

linearDamping

A property that reduces the body’s linear velocity.

Declaration

var linearDamping: CGFloat { get set }

Discussion

This property is used to simulate fluid or air friction forces on the body. The property must be a value between 0.0 and 1.0. The default value is 0.1. If the value is 0.0, no linear damping is applied to the object.

See Also

Defining a Physics Body’s Physical Properties