Flocking behaviour in Flint

Posted on

Among the new actions added in version 1.0 are three that cause interaction between particles. These are

ApproachNeighbours which causes nearby particles to move towards each other.

MinimumDistance which causes particles to keep a minimum distance between themselves.

MatchVelocity which causes particles to adjust their velocity to match the average of all near neighbours.

By combining these actions, we can create flocking behaviour, where particles approach each other, but not too close, and match the velocity of the particles around them. I've added an example to the examples section of the site.

Share this post or a comment online -

Also in the collection Flint Particles