Struct NavMeshGraph.EnterCostAndFlags
A struct per triangle that holds information about extra cost and flags.
Namespace: AnyPath.Graphs.NavMesh
Assembly: AnyPath.dll
Syntax
public struct NavMeshGraph.EnterCostAndFlags
Constructors
EnterCostAndFlags(float, int)
Declaration
public EnterCostAndFlags(float enterCost, int flags)
Parameters
| Type | Name | Description |
|---|---|---|
| float | enterCost | |
| int | flags |
Fields
Unwalkable
A cost of infinity. Apply to a triangle to essentialy remove it from the graph, as this triangle becomes unreachable.
Declaration
public static readonly NavMeshGraph.EnterCostAndFlags Unwalkable
Field Value
| Type | Description |
|---|---|
| NavMeshGraph.EnterCostAndFlags |
enterCost
Additional cost associated with walking this triangle. This value gets added to the distance from the previous triangle. So a value higher than zero discourages A* to travel this triangle.
Declaration
public readonly float enterCost
Field Value
| Type | Description |
|---|---|
| float |
flags
Other properties of the triangle that can be used with a bitmask to exclude triangles from a query.
Declaration
public readonly int flags
Field Value
| Type | Description |
|---|---|
| int |