Need help with Boid Obstacle Avoidance
I am working on a boid simulation and I have the flocking portion working fine, however I can't seem to figure out how to have them steer around obstacles in there paths. All the obstacles are stored in a collection with there x and y coordinates and the obstacles radius ( they are all circles ). For each boid I know it's delta x and y and x and y position, How can I determine if a obstacle is in my path and how do i steer around it? Thanks!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement