Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example we can check whether this agent is collided by another agent which playing action is “run”.

 

Workflow

We must use "riCollide" 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 channel check sentences for getting testing the collide action information

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

Image RemovedImage Added

Both "riCollideri collide" and "collideAction" must 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"

...

after colliding, the channel deactivate

 

Collide Action

...

collideAction:<action name>

check collide agent whether playing action <action name>. MUST work together with riCollide

collideAction:group.<action group name>

...

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