Instance Property

resistance

The linear resistance for the behavior’s dynamic items, which reduces their linear velocity over time.

Declaration

@property(readwrite, nonatomic) CGFloat resistance;

Discussion

Default value is 0.0. Valid range is from 0.0 for no velocity damping, to CGFLOAT_MAX for complete velocity damping. If you set this property to 1.0, a dynamic item’s motion stops as soon as there is no force applied to it.

See Also

Configuring a Dynamic Item Behavior

- addAngularVelocity:forItem:

Adds a specified angular velocity to a dynamic item.

- addLinearVelocity:forItem:

Adds a specified linear velocity to a dynamic item.

allowsRotation

Specifies whether rotation is allowed for the behavior’s dynamic items.

angularResistance

The angular resistance for the behavior’s dynamic items.

- angularVelocityForItem:

Returns the angular velocity for a specified dynamic item.

- linearVelocityForItem:

Returns the linear velocity for a specified dynamic item.

density

The relative mass density of the behavior’s dynamic items.

elasticity

The amount of elasticity applied to collisions for the behavior’s dynamic items.

friction

The linear resistance for the behavior’s dynamic items when two slide against each other.

charge

The charge associated with the item.

anchored

A Boolean value indicating whether the item is anchored to its current position.