Hi I have 3 Questions regarding Constant Path
- In the documentation it says
//Here you create a new path and set how far it should search. Null is for the callback, but the seeker will handle that
ConstantPath cpath = new ConstantPath(transform.position,2000,null);
//Set the seeker to search for the path (where mySeeker is a variable referencing a Seeker component)
mySeeker.StartPath (cpath,myCallbackFunction);
Do I still need the myCallbackFunction if I am using the seeker? If so what does this function contain? Could it be just replaced with OnPathComplete?
-
And can constant path be used in navmeshes to have the same result?
-
I am making a strategy game wherein I want my characters to surround the target and attack them. If I would use constant path for it would I need to compute the gScore myself to make the my characters surround the enemy target, or would the seeker automatically compute it for me so that if a there are other characters in a particular destinationNode the player would choose another node for its destinationNode.