Basic flocking
Im looking to get started in the art of flocking. So far, all Ive found out is that each agent adhere to the following three rules:
* Steer towards flocks average position
* Steer towards flocks average heading
* Steer away from closest agent if its to close.
So now I got three angles the agent wants to aim towards. Do I just get the average angle of those three? Like:
Angle=(a1+a2+a3)/3
Am I completely of track here?
I got another question straight away. I think Im going to make each agent one pixel, therefor it has only 8 directions it can travel in, all the neighbour pixels. Is this to little?
Also, if anyone got any great articles on the subject, I would like to see them! :)
Just in case you haven't read the original Craig Reynolds paper, you can find it at:
http://www.red3d.com/cwr/boids/
A library which implements that functionality (and lots more), plus has some really nice demos, check out Craig Reynold's codebase
http://opensteer.sourceforge.net/
http://www.red3d.com/cwr/boids/
A library which implements that functionality (and lots more), plus has some really nice demos, check out Craig Reynold's codebase
http://opensteer.sourceforge.net/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement