Search Results for

    Show / Hide Table of Contents

    Struct AgentBody

    Agent's body movement.

    Implements
    IComponentData
    IQueryTypeParameter
    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 AgentBody : IComponentData, IQueryTypeParameter

    Fields

    | Improve this Doc View Source

    Destination

    Final destination that agent will attempt to reach.

    Declaration
    public float3 Destination
    Field Value
    Type Description
    float3
    | Improve this Doc View Source

    Force

    Force that agent will use to move towards. Calculated from agent position and destination.

    Declaration
    public float3 Force
    Field Value
    Type Description
    float3
    | Improve this Doc View Source

    IsStopped

    This property holds the stop or resume condition of the agent.

    Declaration
    public bool IsStopped
    Field Value
    Type Description
    bool
    | Improve this Doc View Source

    RemainingDistance

    The distance between the agent's position and the destination. With NavMesh this value will return partial remaining distance not full path.

    Declaration
    public float RemainingDistance
    Field Value
    Type Description
    float
    | Improve this Doc View Source

    Velocity

    The velocity agent is moving.

    Declaration
    public float3 Velocity
    Field Value
    Type Description
    float3

    Properties

    | Improve this Doc View Source

    Default

    Returns default configuration.

    Declaration
    public static AgentBody Default { get; }
    Property Value
    Type Description
    AgentBody
    | Improve this Doc View Source

    Speed

    Returns the legnth of Velocity.

    Declaration
    public float Speed { get; }
    Property Value
    Type Description
    float

    Methods

    | Improve this Doc View Source

    SetDestination(float3)

    Sets properties for new agent destination.

    Declaration
    public void SetDestination(float3 value)
    Parameters
    Type Name Description
    float3 value
    | Improve this Doc View Source

    Stop()

    Sets properties for agent to stop.

    Declaration
    public void Stop()

    Implements

    Unity.Entities.IComponentData
    Unity.Entities.IQueryTypeParameter
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © ProjectDawn.
    Generated by DocFX