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:
- Move towards a point in the scene
- If they come near another particle, move towards it (instead of moving to the point mentioned above)
- 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)
- If a particle's hit points fall below zero, it stops to move and is considered “dead”
- 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.