Movement Pack for State Designer

The Movement Pack for State Designer adds eight navigation and steering Actions: Seek, Follow, Flee, Evade, Pursue, Patrol, Wander, and Move To Cover. Use them to build patrol, chase, escape, and cover states. Core State Designer Conditions or ConditionDelegate decide when the agent changes state.

All eight Actions choose destinations through a Movement Agent and its provider. The included NavMesh Movement Provider uses Unity’s NavMesh Agent for routing and movement. The pack contains no dedicated Conditions; use the main State Designer Condition library or a method-based Condition for transition decisions.

Start here

  1. Follow Getting Started to set up an agent and a Seek state.
  2. Choose movement behavior from Action Reference, then connect results with Results and Transitions.
  3. Use Runtime Targets and State Patterns for shared variables, interruption, and practical state-machine layouts.
  4. Read Cover for concealment, stances, authored points, and reservations.
  5. Read Traversal Integration when a NavMesh link needs application-specific locomotion.
  6. Consult Providers and Troubleshooting when a path or movement result is unexpected.

Included Actions

Action Use it to
Seek Reach a GameObject or world-space position, or keep tracking it.
Follow Maintain a distance band around a target, with hysteresis and optional facing.
Pursue Intercept a moving target using bounded velocity prediction.
Flee Move away from a threat until a safe distance is sustained.
Evade Choose an escape route while accounting for predicted threat motion.
Patrol Visit waypoints sequentially, in ping-pong order, or randomly.
Wander Sample local destinations, optionally stopping after a set number.
Move To Cover Select reachable cover, move to it, and optionally maintain protection.

Move Towards and Rotate Towards belong to State Designer’s main Action library. Use Seek when an agent must navigate around obstacles. The demo contains one example for each of the eight included Actions.

Movement and decisions

Navigation Actions publish a Result shared variable of type MovementResult. Both a successful arrival and a failed path finish the Action. A transition must inspect the detailed result to distinguish them. Continuous behaviors remain active until a transition interrupts them or another terminal result occurs.

See the State Designer requirements and Action State guides for the underlying graph workflow.