The NavMesh class in the Sandbox.Navigation
namespace provides functionality for AI navigation within a world. It allows for the generation and management of navigation meshes, which are used by AI agents to navigate complex environments.
The NavMesh class in the Sandbox.Navigation
namespace provides functionality for AI navigation within a world. It allows for the generation and management of navigation meshes, which are used by AI agents to navigate complex environments.
Member Name | Summary |
---|---|
IsEnabled | Determines whether the navigation mesh is enabled and should be generated. |
IsGenerating | The navigation mesh is generating. |
IsDirty | The navigation mesh is dirty and needs a complete rebuild. |
IncludeStaticBodies | Should the generator include static bodies. |
IncludeKeyframedBodies | Should the generator include keyframed bodies. |
ExcludedBodies | Don't include these bodies in the generation. |
IncludedBodies | If any, we'll only include bodies with this tag. |
EditorAutoUpdate | Constantly update the navigation mesh in the editor. |
DrawMesh | Draw the navigation mesh in the editor. |
AgentHeight | Height of the agent. |
AgentRadius | The radius of the agent. This will change how much gap is left on the edges of surfaces, so they don't clip into walls. |
AgentStepSize | The maximum height an agent can climb (step). |
AgentMaxSlope | The maximum slope an agent can walk up (in degrees). |
Member Name | Summary |
---|---|
Dispose | Disposes of the navigation mesh resources. |
SetDirty | Set the navigation as dirty, so it will rebuild next update. |
Generate | Generates the navigation mesh for the given physics world. |
GetSimplePath | Gets a simple path between two points. |
GetRandomPoint | Gets a random point on the navigation mesh. |
GetClosestPoint | Gets the closest point on the navigation mesh to a given position. |
GetClosestEdge | Gets the closest edge on the navigation mesh to a given position. |
GenerateTile | Generates a navigation mesh tile for a specific world position. |
GenerateTiles | Generates navigation mesh tiles for a specific bounding box. |