Versions Compared

Key

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

...

Transition Map Setup

 

Workflow

In action editor Action Editor, we can set the trigger for walkToStandL and walkToStandR

In below images, we add defined "Left" trigger to walkToStandL, and add "Right" trigger to walkToStandR

Add trigger for walkToStandL

...

We build a very simple logic scene which can make our agents stop walking and transit to stand in bound.

Then we added 2 maya simulation attribute in simulation time Maya Attribute > Set maya attribute:?? value ??

Trigger Name the same as trigger define in Action Editor

 

If these attribute names are the same as triggers, it can control the exit actions choice.

...

Both attributes less than 0.5 (in below picture) The trigger existed but not active, the agents will keep walking.

Left: 0.2, Right: 0.2 (both less than 0.5)

 

Left trigger is great than Right trigger, it will choose "walkToStandL".

Image Added

Left: 0.8, Right: 0.2 (Choose Left)

 

Right trigger is great than Left trigger, it will choose "walkToStandR".

Image Added

Left: 0.2, Right: 0.8 (Choose Right)