Contents

friction

The roughness of the surface of the physics body.

Declaration

var friction: CGFloat { get set }

Discussion

This property is used to apply a frictional force to physics bodies in contact with this physics body. The property must be a value between 0.0 and 1.0. The default value is 0.2.

See Also

Defining a Physics Body’s Physical Properties