Menu

boid's movement

Dany
2010-04-13
2013-04-30
  • Dany

    Dany - 2010-04-13

    I have 3 groups of agents. Each group consists of agents that have different characteristics from other groups, but similar among the members of their group.
    you can run them around a large circle while keeping the division into groups?
    I've trained gropus , I need an indication of the movement.

     
  • Craig Reynolds

    Craig Reynolds - 2010-04-17

    Are you saying that you want them to have basically the same behavior while traveling around a circle?  Perhaps a bit like a flock of birds flying inside a circular enclosure?  If so, you want to add another steering force on top of the ones you have already.

    You could use obstacle avoidance with two large sphere-shaped obstacles: a bigger one that the agents must stay inside and a smaller one that they must stay outside.  So on the plane (your agents are 2d, right?) they are constrainted to be in region shaped like an annulus ( http://en.wikipedia.org/wiki/Annulus_%28mathematics%29 ).  There is an example of this in the Boids plug-in for OpenSteerDemo - press F4 twice to get to "Obstacles: inside a sphere, outside another"

    Another approach is to use "path following" like in the Pedestrians plug-in, make a circular pathway and have your agents follow that while doing all their normal behaviors.

     

Log in to post a comment.

MongoDB Logo MongoDB