D4ng3rmouse
05-23-2007, 10:40 AM
Hi, I've been working on a particle based flocking system for the last few weeks and I had thoght it was going ok but I seem to have hit a wall. I was hoping to use the flocking system to mimic a swarm of bugs. Now the method i used was to use particles and to control them with rules such as alignment, seperation and cohesion as set out in many papers. To get the correct bug geometry I was just particle instancing a bug mesh that i had modelled previously. To get the instanced meshes to face in the direction of traveI I just selecting the option to had the instance aim in the direction of the velocity. Now this all seemed to be working fine until I wanted to get the bugs to hover in one place.
The problem now is that I can't get the bugs to hover as they are always going to be pointing in the direction of their velocity and in this case i don't want them too. Also i was hoping to use aniamtion clips to assign a specific animation to an instanced particle for a specific action, such as an attacking animation if I wanted it to sting something. However now in this case if i apply animation to the intance object its going to be applied to all the instanced particles at the same time, which again isn't what i want.
I hope all this makes some sense. My main question is in this case are particles not the best way to make this flock? Should I actually be creating seperate duplicated objects rather than instancing and therefore create my own scripts for making sure they are pointing in the right direction? Or is there still a way to do this with particles that i am not aware of? Any help or advice would be very welcome.
The problem now is that I can't get the bugs to hover as they are always going to be pointing in the direction of their velocity and in this case i don't want them too. Also i was hoping to use aniamtion clips to assign a specific animation to an instanced particle for a specific action, such as an attacking animation if I wanted it to sting something. However now in this case if i apply animation to the intance object its going to be applied to all the instanced particles at the same time, which again isn't what i want.
I hope all this makes some sense. My main question is in this case are particles not the best way to make this flock? Should I actually be creating seperate duplicated objects rather than instancing and therefore create my own scripts for making sure they are pointing in the right direction? Or is there still a way to do this with particles that i am not aware of? Any help or advice would be very welcome.
