Flock behavior

Hi,

   I am trying to simulate a flock behaviour using Python in the blender. As a part of this, can anyone please suggest me some tutorials. On little research, I saw examples for bge but could not find for blender python. That would be a great help.

Thanks

Blender has boids for particles but nothing for scripting (that I know of). You could do the flocking algorithm in plain Python and then use it to set coordinates on Blender objects.

Thanks for the reply, but how to make script run for every frame because I need to move fishes in school manner by updating its position each frame. In Unity we have a update function which will be called for every frame. Similar to this do we have anything in blender which we can call for every frame.