nav mesh agent problem, can only be called on active agent that has been placed on a nav mesh
i'm trying to create a 2,5D shooter in DOOM style, and i need my enemy to avoid obstacles, i've tried to bake the navmesh zone, i placed all the static objects... but strangely the zone doesn't color like it's seen on official unity tutorials.
second, when i start the game, it blocks and gives the error message of "can only be called on active agent that has been placed on a nav mesh" and it seems that in the enemy script it tries to search himself (Alieno) as first obstacle...
at first i tought it was a sprite problem, since they are no mesh renderer... but i also tried on a capsule and gives the same thing
Answer by metars · Dec 02, 2015 at 04:26 PM
Your images not seen on url
Did you check your scene floor, always must be static
you can check on inspector
i've resolved the problem... basically since the enemies are 2D in 3D environment it gave problems... so i had to put them into a 3D empty father object.
also, yeah at first i forgot to check for static floor, so it gave some other problems. but now it works :) strange aniway, i can see the images.
Your answer
Follow this Question
Related Questions
how can I implement navmesh in this script? 0 Answers
Navmeshs and Trees 1 Answer
NavMeshAgent not teleport on y axis 0 Answers
NavMesh agent pushed by bullet 0 Answers