Hi,
I've wrote a script that places 10 spawn points on a NavMesh then checks 1.2mt around it for any obstructions if it find any then it runs again until 10 are placed with nothing around them, them I check all are accessible with NavMesh.CalculatePath and if any of them are PathPartial or PathInvalid It runs again until all spawn points are free from obstructions are all saw points are PathComplete.
9 times out of 10 it works fine but the odd time it will throw a StackOverflow, is there any way to avoid this?
Thanks.
↧