Urho.Navigation.NavigationMesh Class

Navigation mesh component. Collects the navigation geometry from child nodes with the Navigable component and responds to path queries.

See Also: NavigationMesh

Syntax

public class NavigationMesh : Component

Requirements

Namespace: Urho.Navigation
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Navigation.NavigationMesh are listed below.

See Also: Component

Public Constructors

Constructs a new instance of Urho.Navigation.NavigationMesh which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Navigation.NavigationMesh, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Navigation.NavigationMesh linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

AgentHeightSingle. Return navigation agent height. Or Set navigation agent height.
AgentMaxClimbSingle. Return navigation agent max vertical climb. Or Set navigation agent max vertical climb.
AgentMaxSlopeSingle. Return navigation agent max slope. Or Set navigation agent max slope.
AgentRadiusSingle. Return navigation agent radius. Or Set navigation agent radius.
[read-only]
BoundingBoxBoundingBox. Return local space bounding box of the navigation mesh.
CellHeightSingle. Return cell height. Or Set cell height.
CellSizeSingle. Return cell size. Or Set cell size.
DetailSampleDistanceSingle. Return detail sampling distance. Or Set detail sampling distance.
DetailSampleMaxErrorSingle. Return detail sampling maximum error. Or Set detail sampling maximum error.
DrawNavAreasBoolean. Return whether to draw NavArea components. Or Draw debug geometry for NavArea components.
DrawOffMeshConnectionsBoolean. Return whether to draw OffMeshConnection components. Or Draw debug geometry for OffMeshConnection components.
EdgeMaxErrorSingle. Return edge max error. Or Set edge max error.
EdgeMaxLengthSingle. Return edge max length. Or Set edge max length.
[read-only]
InitializedBoolean. Return whether has been initialized with valid navigation data.
[read-only]
MeshNameString. Return the given name of this navigation mesh.
[read-only]
NumTilesIntVector2. Return number of tiles.
PaddingVector3. Return navigation mesh bounding box padding. Or Set padding of the navigation mesh bounding box. Having enough padding allows to add geometry on the extremities of the navigation mesh when doing partial rebuilds.
PartitionTypeNavmeshPartitionType. Return Partition Type. Or Set the partition type used for polygon generation.
RegionMergeSizeSingle. Return region merge size. Or Set region merge size.
RegionMinSizeSingle. Return region minimum size. Or Set region minimum size.
TileSizeInt32. Return tile size. Or Set tile size.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.
[read-only]
WorldBoundingBoxBoundingBox. Return world space bounding box of the navigation mesh.

Public Methods

Build() : Boolean
Rebuild the navigation mesh. Return true if successful.
Build(BoundingBox) : Boolean
Rebuild part of the navigation mesh contained by the world-space bounding box. Return true if successful.
DrawDebugGeometry(Boolean)
Add debug geometry to the debug renderer.
override
DrawDebugGeometry(DebugRenderer, Boolean)
Visualize the component as debug geometry.
FindNearestPoint(Vector3, Vector3) : Vector3
FindNearestPoint(Vector3, Vector3, dtQueryFilter*, UInt32*) : Vector3
Find the nearest point on the navigation mesh to a given point. Extents specifies how far out from the specified point to check along each axis.
FindPath(Vector3, Vector3) : Vector3[]
GetAreaCost(UInt32) : Single
Get the current cost of an area
GetDistanceToWall(Vector3, Single, Vector3, dtQueryFilter*, Vector3*, Vector3*) : Single
Return distance to wall from a point. Maximum search radius must be specified.
GetRandomPoint(dtQueryFilter*, UInt32*) : Vector3
Return a random point on the navigation mesh.
GetRandomPointInCircle(Vector3, Single, Vector3, dtQueryFilter*, UInt32*) : Vector3
Return a random point on the navigation mesh within a circle. The circle radius is only a guideline and in practice the returned point may be further away.
MoveAlongSurface(Vector3, Vector3, Vector3, Int32, dtQueryFilter*) : Vector3
Try to move along the surface from one point to another.
Raycast(Vector3, Vector3, Vector3, dtQueryFilter*, Vector3*) : Vector3
Perform a walkability raycast on the navigation mesh between start and end and return the point where a wall was hit, or the end point if no walls.
static
RegisterObject(Context)
Register object factory.
SetAreaCost(UInt32, Single)
Set the cost of an area.
SetMeshName(String)
Set the name of this navigation mesh.
SubscribeToNavigationAreaRebuilt(Action<NavigationAreaRebuiltEventArgs>) : Subscription
Subscribes to the NavigationAreaRebuilt event raised by the NavigationMesh.
SubscribeToNavigationMeshRebuilt(Action<NavigationMeshRebuiltEventArgs>) : Subscription
Subscribes to the NavigationMeshRebuilt event raised by the NavigationMesh.

Public Events