Struct AgentFlock
Agent flocking with nearby agents.
Implements
IComponentData
IQueryTypeParameter
IEnableableComponent
Inherited Members
Namespace: ProjectDawn.Navigation
Assembly: ProjectDawn.Navigation.dll
Syntax
public struct AgentFlock : IComponentData, IQueryTypeParameter, IEnableableComponent
Fields
| Improve this Doc View SourceAlignmentWeight
The weight of the alignment force.
Declaration
public float AlignmentWeight
Field Value
Type | Description |
---|---|
float |
CohesionWeight
The weight of the cohesion force.
Declaration
public float CohesionWeight
Field Value
Type | Description |
---|---|
float |
Layers
Agent flocking with nearby agents.
Declaration
public NavigationLayers Layers
Field Value
Type | Description |
---|---|
NavigationLayers |
Radius
Radius at which agent will attempt cohesion and alignement with nearby agents.
Declaration
public float Radius
Field Value
Type | Description |
---|---|
float |
Properties
| Improve this Doc View SourceDefault
Returns default configuration.
Declaration
public static AgentFlock Default { get; }
Property Value
Type | Description |
---|---|
AgentFlock |
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter
Unity.Entities.IEnableableComponent