FieldSweeper.crossReaction

Availability

FieldSweeper component version 1.0

Usage

instance.crossReaction

Description

Property; the way in which a particle reacts when it is crossed by the mouse or a sweeper. The default value is play, which plays the timeline of the particle. If this property is set to anything other than play, the callback function particleCrossed() is called on the particle, in which a custom reactin can be coded.

Example

The following code sets crossReaction to let it use the custom callback.

myFieldSweeper.crossReaction = "";