The amount of elasticity applied to collisions for the behavior’s dynamic items.
Default value is
0.0. Valid range is from
0.0 for no bounce upon collision, to
1.0 for completely elastic collisions.
Configuring a Dynamic Item Behavior
var friction: CGFloat
The linear resistance for the behavior’s dynamic items when two slide against each other.
var resistance: CGFloat
The linear resistance for the behavior’s dynamic items, which reduces their linear velocity over time.
var isAnchored: Bool
A Boolean value indicating whether the item is anchored to its current position.