I’m utilizing the NavMeshSurface part in Unity to generate a navmesh of walkable areas in a procedurally generated stage. I’m engaged on some primary habits to make use of with a NavMeshAgent. I wish to discover a random level for the agent to wander to, however I wish to test if the place is throughout the walkable space earlier than telling the agent to begin navigating.
The issue is that I can not discover a technique to test if some extent is throughout the NavMeshSurface. My search outcomes reference the NavMesh having an analogous technique however not NavMeshSurface. Is there a straightforward solution to test if the purpose is in bounds? Can I entry the NavMesh and ray/sphere solid in opposition to it? Any options can be nice. If there’s a completely different free possibility, I’m open to exploring it.
Thanks. Let me know in the event you require extra info.