- Home /
Multiple agent types problem - NavMesh
Hi,
So I have a scene with an IA (rhino), which is quite big. I have an empty GO in my scene with a navmesh surface, for agent type rhino. And I have a navmesh agent on my rhino, with rhino selected. So my rhino works well.
Then I added a smaller IA (a ghost). On the empty GO I putted a second navMesh surface, for agent type "ghost" which is smaller :
On my ghost I have a navmesh agent, with "ghost" selected. So I press bake for both navmesh surfaces and I see the difference between places with one (dark blue) or both navmesh in the scene (light blue), the large rhino can't walk next to walls.
BUT : when I press play, my rhino try to use both navmesh! (and maybe my ghost too). And the rhino gets stuck on walls. When I disable the navmesh surface of the ghost, the ghost have an error but the rhino work just fine and don't come too close to the walls, as it's supposed to.
Can anyone help me undestand this plz?