Miarmy Crowd Simulation Documentation (English)

Collide Actions and Action Group


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 "reserve info (RI)"mode of sentences 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 check sentences for testing the collide action information

Notice, we must use above 2 sentences for getting the correct information, like the below picture:

Both "ri collide" and "collide action" 2 sentences need to 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 Sentences

Collision Detection

  • when collide, I'm playing action:walkA
  • when collide, I'm playing action in group:walk

MUST work together with (RI) mode of collide check sentences


 

 

 

Basefount Technology