Create flocking behavior
Basic implementation
Gosh, it works with Particles object if you add object with Boid to it!
Thank you skymen! Great stuff as always!
All of my boids merge together after about a minute. I have tried straight up copying the code, but I cant get them to seperate the way they do in the example project?
Thank you so much! :3
any chance to add collision with solid obiects?
works perfect to create a flock of enemies in my game.
Do you have plans to rewrite this plugin to make it more optimized?
Yes in the future. No date planned however sadly.
Thank you for this. Is there a way to keep the group that is flocking from stacking on top of each other and kind of just squish together in a group?
Any chance you could add a disable/enable?
I'm trying to add a knockback but the boids behaviour is interfering. Maybe there's a work around I'm missing?
i am planning on reworking this addon in the future.
IIRC, for the boids to be effective, you need to call an action. You could just add a "isBoidEnabled" boolean instance var and only have it call the action if that boolean is true
Oh gotcha, that seems so obvious now that you say it, thank you!