Skip to content

NavGridAgent Steer Away From Position

Steers a NavGridAgent away from a world position 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.
Position World position 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