FieldSweeper.snapBack

Availability

FieldSweeper component version 1.0

Usage

instance.snapBack

Description

Property; indicates whether a particle should snap back to its original position when the mouse moves over/off of it. This property only applies if mouseOff, and attractRepulse is non-zero. The default is true.

Example

The following code sets the snapBack property to true.

myFieldSweeper.snapBack = true;