Search Results for

    Show / Hide Table of Contents

    Struct NavMeshFunnel

    Used for creating optimal path from navmesh polygons.

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: ProjectDawn.Navigation
    Assembly: ProjectDawn.Navigation.dll
    Syntax
    public struct NavMeshFunnel : IDisposable

    Constructors

    | Improve this Doc View Source

    NavMeshFunnel(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 Source

    IsEndReachable

    Used for creating optimal path from navmesh polygons.

    Declaration
    public bool IsEndReachable { get; }
    Property Value
    Type Description
    bool

    Methods

    | Improve this Doc View Source

    AsFlags()

    Returns flags array of the path.

    Declaration
    public NativeSlice<StraightPathFlags> AsFlags()
    Returns
    Type Description
    NativeSlice<StraightPathFlags>

    Returns array of flags.

    | Improve this Doc View Source

    AsLocations()

    Returns locations array of the path.

    Declaration
    public NativeSlice<NavMeshLocation> AsLocations()
    Returns
    Type Description
    NativeSlice<NavMeshLocation>

    Returns array of locations.

    | Improve this Doc View Source

    Dispose()

    Used for creating optimal path from navmesh polygons.

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    GetCornersDistance()

    Returns distance of the path.

    Declaration
    public float GetCornersDistance()
    Returns
    Type Description
    float
    | Improve this Doc View Source

    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.

    Implements

    IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © ProjectDawn.
    Generated by DocFX