Basic crowd animation with particle interaction

   3180   2   2
User Avatar
Member
2 posts
Joined: May 2010
Offline
Hi everyone,

I'm trying to create a basic, agent/AI based crowd animation for a college assignment, but am somewhat puzzled by the POP system. In the final scene, agents/particles should do the following:

  1. Move towards a point in the scene
  2. If they come near another particle, move towards it (instead of moving to the point mentioned above)
  3. If they are right next to another particle, “attack” it (i.e. change a state/attribute to “attack” and repeatably decrease the other particle's “hit points” attribute)
  4. If a particle's hit points fall below zero, it stops to move and is considered “dead”
  5. The winning particle goes back to 1. (move to point)


    I know that I can set basic interaction behaviour with the Interact POP (i.e., make particles move towards each other), but theres nothing causing them to stop once they've “collided”.
    I thought about creating events based on the Proximity POP, but I can't figure out how to apply operations to only those particles that acutally caused the events, instead of all of them.

    Any help / directions would be greatly appreciated.
User Avatar
Member
16 posts
Joined: Jan. 2010
Offline
I suggest you to look at this first :
http://sweb.cityu.edu.hk/sm4123/07-Tut.pdf [sweb.cityu.edu.hk]
Then this thread is really interesting, specially the .hip by Peter Claes :
http://forums.odforce.net/index.php?/topic/10434-pop-loot-and-looters/page__fromsearch__1 [forums.odforce.net]
User Avatar
Member
2 posts
Joined: May 2010
Offline
Thanks a lot for the reply! Those links helped heaps.
  • Quick Links