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
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 |
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 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 |
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