Sunday, August 23, 2009


View example

Stardust project homepage

I've added a new action: FollowWaypoints.

Used along with the Waypoint class, this action causes particles to follow waypoints in series, creating a path-finding behavior. There's also an option for whether particles loop back to the first waypoint after passing through the last waypoint. A 3D version is available as well: the FollowWaypoints3D class.

The algorithm used by the FollowWaypoints class was inspired by the Path Finding section in the Steering Behavior chapter of AdvancED ActionScript 3.0 Animation, by Keith Peters.

1 comment:

Michael Minor said...

I know this is the old blog but you really should have a separate example for the Waypoints3D. Considering how much is different from the 2D example.