Struct AgentSonarAvoid
Agent avoidance of nearby agents using Sonar Avoidance algorithm.
Implements
IComponentData
IQueryTypeParameter
IEnableableComponent
Inherited Members
Namespace: ProjectDawn.Navigation
Assembly: ProjectDawn.Navigation.dll
Syntax
public struct AgentSonarAvoid : IComponentData, IQueryTypeParameter, IEnableableComponent
Fields
| Improve this Doc View SourceAngle
The angle of obstacle inserted behind agent velocity.
Declaration
public float Angle
Field Value
Type | Description |
---|---|
float |
BlockedStop
Whenever agent should stop if all directions are blocked.
Declaration
public bool BlockedStop
Field Value
Type | Description |
---|---|
bool |
Layers
Agent avoidance of nearby agents using Sonar Avoidance algorithm.
Declaration
public NavigationLayers Layers
Field Value
Type | Description |
---|---|
NavigationLayers |
MaxAngle
The maximum angle at which agent will attempt to nearby agents.
Declaration
public float MaxAngle
Field Value
Type | Description |
---|---|
float |
Mode
Mode that modifies avoidance behaviour.
Declaration
public SonarAvoidMode Mode
Field Value
Type | Description |
---|---|
SonarAvoidMode |
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 SourceDefault
Returns default configuration.
Declaration
public static AgentSonarAvoid Default { get; }
Property Value
Type | Description |
---|---|
AgentSonarAvoid |
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter
Unity.Entities.IEnableableComponent