Click here for applet goodness and code
Finally I’ve been able to code a… half descent flocking system, here sharing it with you on it’s 2d version, with it’s whole code for you to mess with (if you dare to try and understand the code).
wandering, chasing, running, arriving, avoiding, cohesion and alignment steering forces.
it could really use a quadtree for space partitioning but… well. it will eventually work.
So, Particles where getting done, but as i went bored about the transformations needed to modify some of the field forces i was implementing… I jumped to steering wills… already implemented wandering, seek, flee, and arrive.
Some aggregate visualization of these... 'flocks'
EDIT:I have just implemented cohesion and avoidance, only alignment left to have a full flocking system :).