Struct FlockGroup
Agent group for flocking. Modifies desired direction to match flock direction.
Implements
IComponentData
IQueryTypeParameter
Inherited Members
Namespace: ProjectDawn.Navigation
Assembly: ProjectDawn.Navigation.dll
Syntax
public struct FlockGroup : IComponentData, IQueryTypeParameter
Fields
| Improve this Doc View SourceAlignment
Scaler of alignment.
Declaration
public float Alignment
Field Value
Type | Description |
---|---|
float |
AverageDirection
Average direction of the flock.
Declaration
public float3 AverageDirection
Field Value
Type | Description |
---|---|
float3 |
AveragePositions
Average position of the flock.
Declaration
public float3 AveragePositions
Field Value
Type | Description |
---|---|
float3 |
Cohesion
Scaler of cohesion.
Declaration
public float Cohesion
Field Value
Type | Description |
---|---|
float |
LeaderEntity
Leader of the flock.
Declaration
public Entity LeaderEntity
Field Value
Type | Description |
---|---|
Entity |
Radius
Maximum radius of the flock from leader.
Declaration
public float Radius
Field Value
Type | Description |
---|---|
float |
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter