Contents

isActive

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

Declaration

var isActive: Bool { get set }

Discussion

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

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

See Also

Specifying a Field’s Behavior