Skip to content

NavGridAgent Steer Away From Target

Steers a NavGridAgent away from a target transform by choosing the next cell direction each arrival step.

This is steering behavior (no A* full-path solve), useful for fleeing and spacing behavior.

Parameter Description
Agent NavGridAgent to steer.
Target Transform to steer away from.
No Reverse Avoid immediate reverse direction when possible.
Randomize Ties Random tie-break for equal scoring options.

Notes

  • Steering evaluates next-step direction at cell centers.
  • Steering targets can be outside the NavGrid; the agent still picks the best valid neighbor step.

See also