data_object Properties 20

AgentHeight
float
Height of the agent
AgentMaxDrop
float
The highest ledge an agent drops off.
AgentMaxJumpDistance
float
The widest gap an agent jumps across.
AgentMaxJumpHeight
float
The highest an agent jumps up, onto a ledge or across a gap.
AgentMaxSlope
float
The maximum slope an agent can walk up (in degrees)
AgentRadius
float
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
float
The maximum height an agent can climb (step)
Bounds
BBox
The bounds to generate the navmesh within. Won't take effect until regenerated or reloaded.
CustomBounds
bool
By Default , the navmesh will calculate bounds based on the world geometry, but if you want to override that, you can set custom bounds here.
DeferGeneration
bool
Skip tile generation during scene load. Tiles can then be generated on demand via Sandbox.Navigation.NavMesh.GenerateTile(Sandbox.PhysicsWorld,Vector3), Sandbox.Navigation.NavMesh.RequestTileGeneration(Vector3), etc.
DrawMesh
bool
Draw the navigation mesh in the editor
EditorAutoUpdate
bool
Constantly update the navigation mesh in the editor
ExcludedBodies
TagSet
Don't include these bodies in the generation
GenerateLinks
bool
Generate links for drops, jumps and box triggers tagged "ladder". These Sandbox.NavMeshLink components are not saved with the scene.
IncludedBodies
TagSet
If any, we'll only include bodies with this tag
IncludeKeyframedBodies
bool
Should the generator include keyframed bodies
IncludeStaticBodies
bool
Should the generator include static bodies
IsDirty
bool
The navigation mesh is dirty and needs a complete rebuild
IsEnabled
bool
Determines wether the navigation mesh is enabled and should be generated
IsGenerating
bool
The navigation mesh is generating

functions Methods 15

CalculatePath (request)
NavMeshPath
Computes a navigation path between the specified start and target positions on the navmesh. Uses the same pathfinding algorithm as Sandbox.NavMeshAgent, taking agent configuration into account if provided. The result is suitable for direct use with Sandbox.NavMeshAgent.SetPath(Sandbox.Navigation.NavMeshPath). If a complete path cannot be found, the result may indicate an incomplete or failed path.
CalculatePathAsync (request, cancellationToken)
Task`1
Captures agent constraints when called and calculates on a worker. Cancellation is checked before and after the search.
Dispose ()
Generate (world)
Task`1
Builds every tile in the bounds from the geometry of the world. False when a tile failed to build or the navmesh is already generating.
GenerateTile (world, worldPosition)
Task
Generates or regenerates the navmesh tile at the given world position. This function is thread safe but can only be called from the main thread.
GenerateTiles (world, bounds)
Task
Generates or regenerates the navmesh tiles overlapping with the given bounds. This function is thread safe but can only be called from the main thread.
GetClosestEdge (box)
Nullable`1
The closest point on the outline of the navmesh, seen from the closest point on the navmesh in the box. Null when there is no navmesh in the box or no outline within its half width of that point.
GetClosestPoint (box)
Nullable`1
GetRandomPoint ()
Nullable`1
GetSimplePath (from, to)
obsoleteList`1
RequestTileGeneration (worldPosition)
Queues the navmesh tile at the given world position for incremental generation over subsequent frames. Fire-and-forget alternative to Sandbox.Navigation.NavMesh.GenerateTile(Sandbox.PhysicsWorld,Vector3).
RequestTilesGeneration (bounds)
Queues all navmesh tiles overlapping with the given bounds for incremental generation over subsequent frames. Fire-and-forget alternative to Sandbox.Navigation.NavMesh.GenerateTiles(Sandbox.PhysicsWorld,BBox).
SetDirty ()
Set the navgiation a dirty, so it will rebuild over the next few frames. If you need an immediate rebuild, call Sandbox.Navigation.NavMesh.Generate(Sandbox.PhysicsWorld) instead.
UnloadTile (worldPosition)
Removes the navmesh tile at the given world position.
UnloadTiles (bounds)
Removes all navmesh tiles overlapping with the given bounds.

functions Static Methods 1

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.