Search Results for

    Show / Hide Table of Contents

    Struct AgentSonarAvoid

    Agent avoidance of nearby agents using Sonar Avoidance algorithm.

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

    Fields

    | Improve this Doc View Source

    Angle

    Discourages the agent from moving backwards. The higher the value, the more likely the agent will be able to escape surrounded scenarios, but this comes at the cost of reduced agent control.

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

    BlockedStop

    Whenever agent should stop if all directions are blocked.

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

    Layers

    Agent avoidance of nearby agents using Sonar Avoidance algorithm.

    Declaration
    public NavigationLayers Layers
    Field Value
    Type Description
    NavigationLayers
    | Improve this Doc View Source

    MaxAngle

    The maximum angle at which the agent will steer away to avoid local obstacles. The lower the value, the less sonar avoidance will affect the steering direction.

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

    Mode

    Mode that modifies avoidance behaviour.

    Declaration
    public SonarAvoidMode Mode
    Field Value
    Type Description
    SonarAvoidMode
    | Improve this Doc View Source

    Radius

    The maximum distance at which agent will attempt to avoid nearby agents.

    Declaration
    public float Radius
    Field Value
    Type Description
    float

    Properties

    | Improve this Doc View Source

    Default

    Returns default configuration.

    Declaration
    public static AgentSonarAvoid Default { get; }
    Property Value
    Type Description
    AgentSonarAvoid

    Implements

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