Instance Property

active

A Boolean value that determines whether the field’s effect is enabled.

Declaration

@property(nonatomic, getter=isActive) BOOL active;

Discussion

If this value is NO, the field does not apply forces to physics bodies in its area of effect. The default value is YES.

Use this property, for example, to switch fields on and off as a gameplay mechanic.

See Also

Specifying a Field’s Behavior

strength

A multiplier for the force that the field applies to objects in its area of effect.

falloffExponent

An exponent that determines how the field’s strength diminishes with distance.

minimumDistance

The minimum value for distance-based effects.

exclusive

A Boolean value that determines whether the field overrides other fields whose areas of effect it overlaps.