Struct NavMeshFunnel
Used for creating optimal path from navmesh polygons.
Implements
Inherited Members
Namespace: ProjectDawn.Navigation
Assembly: ProjectDawn.Navigation.dll
Syntax
public struct NavMeshFunnel : IDisposable
Constructors
| Improve this Doc View SourceNavMeshFunnel(int, Allocator)
Used for creating optimal path from navmesh polygons.
Declaration
public NavMeshFunnel(int capacity, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
int | capacity | |
Allocator | allocator |
Properties
| Improve this Doc View SourceIsEndReachable
Used for creating optimal path from navmesh polygons.
Declaration
public bool IsEndReachable { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Improve this Doc View SourceAsFlags()
Returns flags array of the path.
Declaration
public NativeSlice<StraightPathFlags> AsFlags()
Returns
Type | Description |
---|---|
NativeSlice<StraightPathFlags> | Returns array of flags. |
AsLocations()
Returns locations array of the path.
Declaration
public NativeSlice<NavMeshLocation> AsLocations()
Returns
Type | Description |
---|---|
NativeSlice<NavMeshLocation> | Returns array of locations. |
Dispose()
Used for creating optimal path from navmesh polygons.
Declaration
public void Dispose()
GetCornersDistance()
Returns distance of the path.
Declaration
public float GetCornersDistance()
Returns
Type | Description |
---|---|
float |
TryCreateStraightPath(NavMeshQuery, NativeSlice<PolygonId>, float3, float3)
Recreates corridor with straight path. This method will attempt to build optimal path using NavMesh polygons.
Declaration
public bool TryCreateStraightPath(NavMeshQuery query, NativeSlice<PolygonId> path, float3 from, float3 to)
Parameters
Type | Name | Description |
---|---|---|
NavMeshQuery | query | The NavMesh query. |
NativeSlice<PolygonId> | path | Polygons array. |
float3 | from | Starting position. |
float3 | to | Destination position. |
Returns
Type | Description |
---|---|
bool | Returns true if path is valid. |