Miarmy Crowd Simulation Documentation (English)

Exit Trigger

Introductions

We can use logic to control which action the agent will select to transit to next action in transition map along with exit trigger.


Instructions

In below image, suppose we have several transition action from standA to walkA.


If current agent is playing standA action, and its next action is walkA, it will transit from standA to walkA using 4 different transition actions.

If there is no any setup at this time, our engine will select an action randomly from standAtowalkA, standAtowalkA2, standAtowalkA3, standAtowalkA4 and transit from standA to walkA.

At this time we can setup and interfere the action choose at this time.

There are 2 methods

  1. Action Exit Choice Main Features of Transition Map
  2. Actrion Trigger (we'll describe here)

Action Trigger

We can fill the different exit trigger in different action through action editor:

For example:

We setup 4 exit trigger for 4 actions:

  • standAtowalkA : sw1
  • standAtowalkA2 :sw2
  • standAtowalkA3 : sw3
  • standAtowalkA4 : sw4


And in logic setup, we can use the Maya Attribute (Simulation) and the attribute name of it should be the same as transition action exit trigger.

For example, we use this logic:

set maya attribute:sw2 value 1

And your agent will choose the action standAtowalkA2


And different agents can transit to next action by logic control





Basefount Technology