A robust implementation of a random walking point through three dimensions.
A loop construct instantiates a series points, each offset from the
last using a 3D vector accelerating in random directions.
MOUSEOVER newly placed points (the head) to give a random spin
to an offstage color transform modifier.
The coiling effect is achieved through a simple tween of the instantiated
point object. To keep things reasonable, each point eventually reduces
in scale and removes itself after 2 seconds.
Although the transformation vector is determined at random, the
point attempts to stay within the main stage using simple boundary
checking.
The stacking and scaling effects of this module were adopted from
their original implementation within the Lorenz
Attractor.
|