Instance Method

addAngularVelocity:forItem:

Adds a specified angular velocity to a dynamic item.

Declaration

- (void)addAngularVelocity:(CGFloat)velocity forItem:(id<UIDynamicItem>)item;

Parameters

velocity

The angular velocity, expressed in radians per second, that you want to add to the specified dynamic item. Default value is 0. Applying a negative value reduces the angular velocity by the specified amount.

item

The dynamic item whose angular velocity you want to increase (or decrease).

See Also

Configuring a Dynamic Item Behavior

- 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.

resistance

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

charge

The charge associated with the item.

anchored

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