Skip to content

NavGridAgent Steer Towards Position

Steers a NavGridAgent toward a world position by choosing the next cell direction each arrival step.

This is steering behavior (no A* full-path solve), useful for reactive chase and homing behavior.

Parameter Description
Agent NavGridAgent to steer.
Position World position to steer toward.
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