Forum rules - please read before posting.

Navmesh agents etc.?

edited October 2014 in Technical Q&A
I recently switched to unitys pathfinding (because i had heavy hickups with the standard one) and its working great. But Is it possible to set the navmesh agent settings (like avoidance for example) somewhere in AC? or is there a way to add/change those properties via script?

thanks for any help!
 --stephan

Comments

  • If you don't mind getting your hands dirty, custom pathfinding methods can be added to AC.  Have a look at section 11.3 of the manual.
  • Mhh, i dont want to replace it, Unitys buildIn works fine so far....
    but it would offer some options like avoidance, which can't be controlled via AC.Couldn't you simply expose some parameters or did you write your own custom "agent-script" for AC?
  • It's custom, since it needs to integrate with the Paths script.  Have a look in NavigationEngine_UnityNavigation.cs - it calls NavMesh.CalculatePath once before the character moves.  It doesn't make repeated calls, and converts the result into an "AC Path".
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.