Search Results for

    Show / Hide Table of Contents

    Class KaijuAgentsFindPath

    Extension methods for finding a path.

    Inheritance
    System.Object
    KaijuAgentsFindPath
    Namespace: KaijuSolutions.Agents.Extensions
    Syntax
    public static class KaijuAgentsFindPath

    Fields

    InitialCacheSize

    What size to initially allocate for getting paths.

    Declaration
    public const int InitialCacheSize = 100
    Field Value
    Type Description
    System.Int32

    Methods

    FindPath(Vector2, Vector2, List<Vector2>, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector2 goal, List<Vector2> path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector2 goal

    The goal position.

    System.Collections.Generic.List<Vector2> path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector2, List<Vector2>, Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector2 goal, List<Vector2> path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector2 goal

    The goal position.

    System.Collections.Generic.List<Vector2> path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector2, List<Vector3>, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector2 goal, List<Vector3> path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector2 goal

    The goal position.

    System.Collections.Generic.List<Vector3> path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector2, List<Vector3>, Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector2 goal, List<Vector3> path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector2 goal

    The goal position.

    System.Collections.Generic.List<Vector3> path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector2, ref Vector2[], NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector2 goal, ref Vector2[] path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector2 goal

    The goal position.

    Vector2[] path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector2, ref Vector2[], Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector2 goal, ref Vector2[] path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector2 goal

    The goal position.

    Vector2[] path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector2, ref Vector3[], NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector2 goal, ref Vector3[] path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector2 goal

    The goal position.

    Vector3[] path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector2, ref Vector3[], Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector2 goal, ref Vector3[] path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector2 goal

    The goal position.

    Vector3[] path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector3, List<Vector2>, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector3 goal, List<Vector2> path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector3 goal

    The goal position.

    System.Collections.Generic.List<Vector2> path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector3, List<Vector2>, Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector3 goal, List<Vector2> path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector3 goal

    The goal position.

    System.Collections.Generic.List<Vector2> path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector3, List<Vector3>, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector3 goal, List<Vector3> path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector3 goal

    The goal position.

    System.Collections.Generic.List<Vector3> path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector3, List<Vector3>, Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector3 goal, List<Vector3> path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector3 goal

    The goal position.

    System.Collections.Generic.List<Vector3> path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector3, ref Vector2[], NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector3 goal, ref Vector2[] path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector3 goal

    The goal position.

    Vector2[] path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector3, ref Vector2[], Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector3 goal, ref Vector2[] path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector3 goal

    The goal position.

    Vector2[] path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector3, ref Vector3[], NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector3 goal, ref Vector3[] path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector3 goal

    The goal position.

    Vector3[] path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector2, Vector3, ref Vector3[], Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector2 start, Vector3 goal, ref Vector3[] path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector2 start

    The starting position.

    Vector3 goal

    The goal position.

    Vector3[] path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector2, List<Vector2>, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector2 goal, List<Vector2> path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector2 goal

    The goal position.

    System.Collections.Generic.List<Vector2> path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector2, List<Vector2>, Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector2 goal, List<Vector2> path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector2 goal

    The goal position.

    System.Collections.Generic.List<Vector2> path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector2, ref Vector2[], NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector2 goal, ref Vector2[] path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector2 goal

    The goal position.

    Vector2[] path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector2, ref Vector2[], Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector2 goal, ref Vector2[] path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector2 goal

    The goal position.

    Vector2[] path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector3, List<Vector2>, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector3 goal, List<Vector2> path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector3 goal

    The goal position.

    System.Collections.Generic.List<Vector2> path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector3, List<Vector2>, Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector3 goal, List<Vector2> path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector3 goal

    The goal position.

    System.Collections.Generic.List<Vector2> path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector3, List<Vector3>, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector3 goal, List<Vector3> path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector3 goal

    The goal position.

    System.Collections.Generic.List<Vector3> path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector3, List<Vector3>, Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector3 goal, List<Vector3> path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector3 goal

    The goal position.

    System.Collections.Generic.List<Vector3> path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector3, ref Vector2[], NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector3 goal, ref Vector2[] path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector3 goal

    The goal position.

    Vector2[] path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector3, ref Vector2[], Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector3 goal, ref Vector2[] path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector3 goal

    The goal position.

    Vector2[] path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector3, ref Vector3[], NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector3 goal, ref Vector3[] path, NavMeshQueryFilter filter, float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector3 goal

    The goal position.

    Vector3[] path

    The path to update.

    NavMeshQueryFilter filter

    The area filter to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    FindPath(Vector3, Vector3, ref Vector3[], Int32, Nullable<Single>, Int32, QueryTriggerInteraction)

    Find a path from the starting to the end position.

    Declaration
    public static int FindPath(this Vector3 start, Vector3 goal, ref Vector3[] path, int mask = default(int), float? radius = null, int sightMask = -5, QueryTriggerInteraction triggers = null)
    Parameters
    Type Name Description
    Vector3 start

    The starting position.

    Vector3 goal

    The goal position.

    Vector3[] path

    The path to update.

    System.Int32 mask

    The area mask to consider for pathfinding.

    System.Nullable<System.Single> radius

    The radius for path string-pulling checks. Setting to NULL means no string pulling.

    System.Int32 sightMask

    The optional layer mask for path string-pulling checks.

    QueryTriggerInteraction triggers

    How the path string-pulling checks should handle hitting triggers.

    Returns
    Type Description
    System.Int32

    The number of points along the found path.

    ResizeCache(Int32)

    Resize the points cache.

    Declaration
    public static void ResizeCache(int size = 100)
    Parameters
    Type Name Description
    System.Int32 size

    The size to set.

    In This Article
    Back to top MIT License © 2026 Kaiju Solutions Inc.