#Trouble With unity AI navmesh

1 messages · Page 1 of 1 (latest)

molten jackal
#

good day everyone
to start i kept getting this error over and over on my ai, i have a 2 floor level room shown in the first picture

secondly im trying to bake the navmesh AROUND the sphere, however as shown in the second picture it completly ignores the sphere, ive tried playing around with the layers to no avail

i appreciate any solutions

obtuse crest
#

I want to ask since it cannot be appreciated in the screenshots and you haven't mentioned it either, but is your navmeshagent placed on top of the navmesh?

Regarding the issue you mentioned about the navmesh not taking the sphere into consideration, have you added a NavMeshObstacle component to your sphere? I'm assuming your project's AI package is using the navigation components approach.

rain comet
# molten jackal good day everyone to start i kept getting this error over and over on my ai, i h...

I've done one project with navmeshes and am about to start working on another that will be more heavy on the navmesh. Let's share notes when we come accross things. The Llamaacademy on YouTube is super helpful. https://youtube.com/playlist?list=PLllNmP7eq6TSkwDN8OO0E8S6CWybSE_xC&si=vYLClx6QgGS-B9LA
Are you doing this in Unity or another engine? Is the sphere a child of your navmesh object? Do you have a navmesh obstacle on your sphere object? I think you do not want the sphere to be a child and you do want it to have a navmesh obstacle. I beleive obstacles can move, so the Navmesh itself wouldn't show it, but the agents should avoid it.
I havent tried gaps or levels thst are linked yet.

rain comet
#

Nvm, I see this is in the Unity channel. I'm not sure about the error message. Do you have a navmesh agent script on the agent? Is the agent in top of the mesh?

brittle fossil
#

If you're using unity 6 you can remove an object from nav mesh by attaching a nav mesh modifier component and changing parameters accordingly.

molten jackal
molten jackal
molten jackal