Search Results for

    Show / Hide Table of Contents

    Class KaijuPathFollowMovement

    Path following steering behaviour.

    Inheritance
    System.Object
    KaijuMovement
    KaijuPathFollowMovement
    Inherited Members
    KaijuMovement.DefaultWeight
    KaijuMovement.OnStarted
    KaijuMovement.OnStartedGlobal
    KaijuMovement.OnStopped
    KaijuMovement.OnStoppedGlobal
    KaijuMovement.OnPerformed
    KaijuMovement.OnPerformedGlobal
    KaijuMovement.Agent
    KaijuMovement.Weight
    KaijuMovement.Initialize(KaijuAgent, Single)
    KaijuMovement.Setup()
    KaijuMovement.Started()
    KaijuMovement.Stopped()
    KaijuMovement.Performed()
    KaijuMovement.Return()
    KaijuMovement.EditorVisualize(Vector3)
    Namespace: KaijuSolutions.Agents.Movement
    Syntax
    public class KaijuPathFollowMovement : KaijuMovement

    Constructors

    KaijuPathFollowMovement(KaijuAgent, Component, NavMeshQueryFilter, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Create a path follow movement.

    Declaration
    public KaijuPathFollowMovement(KaijuAgent agent, Component target, NavMeshQueryFilter filter, float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Component target

    The component to pathfind to.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    KaijuPathFollowMovement(KaijuAgent, Component, Int32, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Create a path follow movement.

    Declaration
    public KaijuPathFollowMovement(KaijuAgent agent, Component target, int mask = default(int), float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Component target

    The component to pathfind to.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    KaijuPathFollowMovement(KaijuAgent, GameObject, NavMeshQueryFilter, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Create a path follow movement.

    Declaration
    public KaijuPathFollowMovement(KaijuAgent agent, GameObject target, NavMeshQueryFilter filter, float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    GameObject target

    The GameObject to pathfind to.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    KaijuPathFollowMovement(KaijuAgent, GameObject, Int32, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Create a path follow movement.

    Declaration
    public KaijuPathFollowMovement(KaijuAgent agent, GameObject target, int mask = default(int), float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    GameObject target

    The GameObject to pathfind to.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    KaijuPathFollowMovement(KaijuAgent, Vector2, NavMeshQueryFilter, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Create a path follow movement.

    Declaration
    public KaijuPathFollowMovement(KaijuAgent agent, Vector2 target, NavMeshQueryFilter filter, float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector2 target

    The position to pathfind to.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    KaijuPathFollowMovement(KaijuAgent, Vector2, Int32, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Create a path follow movement.

    Declaration
    public KaijuPathFollowMovement(KaijuAgent agent, Vector2 target, int mask = default(int), float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector2 target

    The position to pathfind to.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    KaijuPathFollowMovement(KaijuAgent, Vector3, NavMeshQueryFilter, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Create a path follow movement.

    Declaration
    public KaijuPathFollowMovement(KaijuAgent agent, Vector3 target, NavMeshQueryFilter filter, float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector3 target

    The position to pathfind to.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    KaijuPathFollowMovement(KaijuAgent, Vector3, Int32, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Create a path follow movement.

    Declaration
    public KaijuPathFollowMovement(KaijuAgent agent, Vector3 target, int mask = default(int), float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector3 target

    The position to pathfind to.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Fields

    CollisionMask

    The collision mask for string-pulling line-of-sight checks.

    Declaration
    public int CollisionMask
    Field Value
    Type Description
    System.Int32

    DefaultAutoCalculateDistance

    The default AutoCalculateDistance for path follow movements.

    Declaration
    public const float DefaultAutoCalculateDistance = 1F
    Field Value
    Type Description
    System.Single

    DefaultMask

    The default Mask for path follow movements.

    Declaration
    public const int DefaultMask = default(int)
    Field Value
    Type Description
    System.Int32

    Previous3

    The previous position of the Target3.

    Declaration
    public Vector3 Previous3
    Field Value
    Type Description
    Vector3

    Triggers

    How line-of-sight checks should handle triggers.

    Declaration
    public QueryTriggerInteraction Triggers
    Field Value
    Type Description
    QueryTriggerInteraction

    Properties

    AutoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    Declaration
    public float? AutoCalculateDistance { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Single>

    CurrentDistance

    The current distance between the KaijuAgent and the target.

    Declaration
    public float CurrentDistance { get; }
    Property Value
    Type Description
    System.Single

    CurrentDistance3

    The current distance between the KaijuAgent and the target across all axes.

    Declaration
    public float CurrentDistance3 { get; }
    Property Value
    Type Description
    System.Single

    Distance

    The distance at which we can consider this behaviour done.

    Declaration
    public float Distance { get; set; }
    Property Value
    Type Description
    System.Single

    Filter

    Filter for the navigation calculations.

    Declaration
    public NavMeshQueryFilter? Filter { get; set; }
    Property Value
    Type Description
    System.Nullable<NavMeshQueryFilter>

    Mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    Declaration
    public int Mask { get; set; }
    Property Value
    Type Description
    System.Int32

    MaskAssigned

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    Declaration
    public int? MaskAssigned { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    Path

    The path of points to follow.

    Declaration
    public IReadOnlyList<Vector3> Path { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<Vector3>

    PathDistance

    The total distance from the KaijuAgent along the Path to the Target along the X and Z axes.

    Declaration
    public float PathDistance { get; }
    Property Value
    Type Description
    System.Single

    PathDistance3

    The total distance from the KaijuAgent along the Path to the Target3 along all three axes.

    Declaration
    public float PathDistance3 { get; }
    Property Value
    Type Description
    System.Single

    Previous

    The previous position of the Target3.

    Declaration
    public Vector2 Previous { get; set; }
    Property Value
    Type Description
    Vector2

    Target

    The position to move in relation to.

    Declaration
    public Vector2 Target { get; set; }
    Property Value
    Type Description
    Vector2

    Target3

    The position to move in relation to.

    Declaration
    public Vector3 Target3 { get; set; }
    Property Value
    Type Description
    Vector3

    TargetAgent

    The KaijuAgent to move in relation to.

    Declaration
    public KaijuAgent TargetAgent { get; set; }
    Property Value
    Type Description
    KaijuAgent

    TargetComponent

    The component to move in relation to.

    Declaration
    public Component TargetComponent { set; }
    Property Value
    Type Description
    Component

    TargetGameObject

    The GameObject to move in relation to.

    Declaration
    public GameObject TargetGameObject { get; set; }
    Property Value
    Type Description
    GameObject

    TargetTransform

    The transform to move in relation to.

    Declaration
    public Transform TargetTransform { get; set; }
    Property Value
    Type Description
    Transform

    Methods

    CalculatePath()

    Calculate the path to the target.

    Declaration
    public void CalculatePath()

    Done()

    Determine if the KaijuMovement is done or not.

    Declaration
    public override bool Done()
    Returns
    Type Description
    System.Boolean

    If the KaijuMovement is done or not.

    Overrides
    KaijuMovement.Done()

    EditorRenderVisualizations(Vector3)

    Render the visualization of the KaijuMovement. The position of the Agent.

    Declaration
    protected override void EditorRenderVisualizations(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position
    Overrides
    KaijuMovement.EditorRenderVisualizations(Vector3)

    EditorVisualizationColor()

    Get the color for visualizations.

    Declaration
    protected override Color EditorVisualizationColor()
    Returns
    Type Description
    Color

    The color for visualizations

    Overrides
    KaijuMovement.EditorVisualizationColor()

    Get(KaijuAgent, Component, NavMeshQueryFilter, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Get a path follow movement.

    Declaration
    public static KaijuPathFollowMovement Get(KaijuAgent agent, Component target, NavMeshQueryFilter filter, float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Component target

    The position to pathfind to.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Returns
    Type Description
    KaijuPathFollowMovement

    Get(KaijuAgent, Component, Int32, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Get a path follow movement.

    Declaration
    public static KaijuPathFollowMovement Get(KaijuAgent agent, Component target, int mask = default(int), float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Component target

    The position to pathfind to.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Returns
    Type Description
    KaijuPathFollowMovement

    Get(KaijuAgent, GameObject, NavMeshQueryFilter, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Get a path follow movement.

    Declaration
    public static KaijuPathFollowMovement Get(KaijuAgent agent, GameObject target, NavMeshQueryFilter filter, float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    GameObject target

    The position to pathfind to.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Returns
    Type Description
    KaijuPathFollowMovement

    Get(KaijuAgent, GameObject, Int32, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Get a path follow movement.

    Declaration
    public static KaijuPathFollowMovement Get(KaijuAgent agent, GameObject target, int mask = default(int), float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    GameObject target

    The position to pathfind to.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Returns
    Type Description
    KaijuPathFollowMovement

    Get(KaijuAgent, Vector2, NavMeshQueryFilter, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Get a path follow movement.

    Declaration
    public static KaijuPathFollowMovement Get(KaijuAgent agent, Vector2 target, NavMeshQueryFilter filter, float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector2 target

    The position to pathfind to.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Returns
    Type Description
    KaijuPathFollowMovement

    Get(KaijuAgent, Vector2, Int32, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Get a path follow movement.

    Declaration
    public static KaijuPathFollowMovement Get(KaijuAgent agent, Vector2 target, int mask = default(int), float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector2 target

    The position to pathfind to.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Returns
    Type Description
    KaijuPathFollowMovement

    Get(KaijuAgent, Vector3, NavMeshQueryFilter, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Get a path follow movement.

    Declaration
    public static KaijuPathFollowMovement Get(KaijuAgent agent, Vector3 target, NavMeshQueryFilter filter, float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector3 target

    The position to pathfind to.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Returns
    Type Description
    KaijuPathFollowMovement

    Get(KaijuAgent, Vector3, Int32, Single, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Get a path follow movement.

    Declaration
    public static KaijuPathFollowMovement Get(KaijuAgent agent, Vector3 target, int mask = default(int), float distance = 0.1F, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector3 target

    The position to pathfind to.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Single distance

    The distance from the target to consider this movement done.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Returns
    Type Description
    KaijuPathFollowMovement

    Initialize(KaijuAgent, Component, Single, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Initialize the KaijuMovement.

    Declaration
    public void Initialize(KaijuAgent agent, Component target, float distance, NavMeshQueryFilter filter, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Component target

    The component to move in relation to.

    System.Single distance

    The distance to consider this move done.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Initialize(KaijuAgent, Component, Single, Int32, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Initialize the KaijuMovement.

    Declaration
    public void Initialize(KaijuAgent agent, Component target, float distance, int mask = default(int), float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Component target

    The component to move in relation to.

    System.Single distance

    The distance to consider this move done.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Initialize(KaijuAgent, GameObject, Single, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Initialize the KaijuMovement.

    Declaration
    public void Initialize(KaijuAgent agent, GameObject target, float distance, NavMeshQueryFilter filter, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    GameObject target

    The component to move in relation to.

    System.Single distance

    The distance to consider this move done.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Initialize(KaijuAgent, GameObject, Single, Int32, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Initialize the KaijuMovement.

    Declaration
    public void Initialize(KaijuAgent agent, GameObject target, float distance, int mask = default(int), float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    GameObject target

    The component to move in relation to.

    System.Single distance

    The distance to consider this move done.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Initialize(KaijuAgent, Vector2, Single, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Initialize the KaijuMovement.

    Declaration
    public void Initialize(KaijuAgent agent, Vector2 target, float distance, NavMeshQueryFilter filter, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector2 target

    The component to move in relation to.

    System.Single distance

    The distance to consider this move done.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Initialize(KaijuAgent, Vector2, Single, Int32, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Initialize the KaijuMovement.

    Declaration
    public void Initialize(KaijuAgent agent, Vector2 target, float distance, int mask = default(int), float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector2 target

    The component to move in relation to.

    System.Single distance

    The distance to consider this move done.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Initialize(KaijuAgent, Vector3, Single, NavMeshQueryFilter, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Initialize the KaijuMovement.

    Declaration
    public void Initialize(KaijuAgent agent, Vector3 target, float distance, NavMeshQueryFilter filter, float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector3 target

    The component to move in relation to.

    System.Single distance

    The distance to consider this move done.

    NavMeshQueryFilter filter

    Filter for the navigation calculations.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Initialize(KaijuAgent, Vector3, Single, Int32, Nullable<Single>, Int32, QueryTriggerInteraction, Single)

    Initialize the KaijuMovement.

    Declaration
    public void Initialize(KaijuAgent agent, Vector3 target, float distance, int mask = default(int), float? autoCalculateDistance = 1F, int collisionMask = -5, QueryTriggerInteraction triggers = null, float weight = 1F)
    Parameters
    Type Name Description
    KaijuAgent agent

    The KaijuAgent this is assigned to.

    Vector3 target

    The component to move in relation to.

    System.Single distance

    The distance to consider this move done.

    System.Int32 mask

    A bitfield mask specifying which navigation mesh areas can be used for the path.

    System.Nullable<System.Single> autoCalculateDistance

    The distance to automatically recalculate the path from, with NULL not performing recalculations automatically.

    System.Int32 collisionMask

    The collision mask for string-pulling line-of-sight checks.

    QueryTriggerInteraction triggers

    How line-of-sight checks should handle triggers.

    System.Single weight

    The weight of this KaijuMovement.

    Move(Vector2, Single)

    Get the KaijuMovement.

    Declaration
    public override Vector2 Move(Vector2 position, float delta)
    Parameters
    Type Name Description
    Vector2 position

    The position of the Agent.

    System.Single delta

    The time step.

    Returns
    Type Description
    Vector2

    The calculated move vector.

    Overrides
    KaijuMovement.Move(Vector2, Single)

    Reset()

    Perform any needed reset operations.

    Declaration
    protected override void Reset()
    Overrides
    KaijuMovement.Reset()

    Operators

    Implicit(KaijuPathFollowMovement to GameObject)

    Implicit conversion to a GameObject from the target.

    Declaration
    public static implicit operator GameObject(KaijuPathFollowMovement t)
    Parameters
    Type Name Description
    KaijuPathFollowMovement t

    The target movement.

    Returns
    Type Description
    GameObject

    The target GameObject.

    Implicit(KaijuPathFollowMovement to KaijuAgent)

    Implicit conversion to a KaijuAgent from the target.

    Declaration
    public static implicit operator KaijuAgent(KaijuPathFollowMovement t)
    Parameters
    Type Name Description
    KaijuPathFollowMovement t

    The target movement.

    Returns
    Type Description
    KaijuAgent

    The target KaijuAgent from the target.

    Implicit(KaijuPathFollowMovement to Nullable<Vector2>)

    Implicit conversion to a nullable Vector2 from the target.

    Declaration
    public static implicit operator Vector2? (KaijuPathFollowMovement t)
    Parameters
    Type Name Description
    KaijuPathFollowMovement t

    The target movement.

    Returns
    Type Description
    System.Nullable<Vector2>

    The target.

    Implicit(KaijuPathFollowMovement to Nullable<Vector3>)

    Implicit conversion to a nullable Vector3 from the target.

    Declaration
    public static implicit operator Vector3? (KaijuPathFollowMovement t)
    Parameters
    Type Name Description
    KaijuPathFollowMovement t

    The target movement.

    Returns
    Type Description
    System.Nullable<Vector3>

    The target.

    Implicit(KaijuPathFollowMovement to Transform)

    Implicit conversion to a transform from the target.

    Declaration
    public static implicit operator Transform(KaijuPathFollowMovement t)
    Parameters
    Type Name Description
    KaijuPathFollowMovement t

    The target movement.

    Returns
    Type Description
    Transform

    The target transform.

    Implicit(KaijuPathFollowMovement to Vector2)

    Implicit conversion to a Vector2 from the target.

    Declaration
    public static implicit operator Vector2(KaijuPathFollowMovement t)
    Parameters
    Type Name Description
    KaijuPathFollowMovement t

    The target movement.

    Returns
    Type Description
    Vector2

    The target.

    Implicit(KaijuPathFollowMovement to Vector3)

    Implicit conversion to a Vector3 from the target.

    Declaration
    public static implicit operator Vector3(KaijuPathFollowMovement t)
    Parameters
    Type Name Description
    KaijuPathFollowMovement t

    The target movement.

    Returns
    Type Description
    Vector3

    The target.

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