When we check collision for the one agent, we also can check the collision agent action.
For example we can check whether this agent is collided by another agent which playing action is “run”.
Workflow
We must use "riCollide" for having agent reserve information when they collide. That means when they’re overlapping, they’ll tell the agent some information which include collide direction, action etc…
And then we need to use the collide channel for getting the collide action information
Notice, we must use above 2 channels for getting the correct information, like the below picture shown
Both "riCollide" and "collideAction" must be added
Just using the above example, the result will be like below pictures, only when the collide and collide-in agent playback "walkA" action, the color will turn to "yellow"
before colliding
colliding
after colliding, the channel deactivate
Collide Action Channel
collideAction:<action name>
check collide agent whether playing action <action name>. MUST work together with riCollide
collideAction:group.<action group name>
check collide agent whether playing action from group. MUST work together with riCollide