Home Game Development navmesh – Check if level is inside Unity NavMeshSurface walkable space

navmesh – Check if level is inside Unity NavMeshSurface walkable space

0
navmesh – Check if level is inside Unity NavMeshSurface walkable space

[ad_1]

I’m utilizing the NavMeshSurface element in Unity to generate a navmesh of walkable areas in a procedurally generated degree. I’m engaged on some primary habits to make use of with a NavMeshAgent. I need to discover a random level for the agent to wander to, however I need to test if the place is inside the walkable space earlier than telling the agent to start out navigating.

The downside is that I am unable to discover a technique to test if a degree is inside the NavMeshSurface. My search outcomes reference the NavMesh having an identical technique however not NavMeshSurface. Is there a simple strategy to test if the purpose is in bounds? Can I entry the NavMesh and ray/sphere forged in opposition to it? Any options could be nice. If there’s a totally different free choice, I’m open to exploring it.

Thanks. Let me know in case you require extra data.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here