Struct AgentBody
Agent's body movement.
Implements
IComponentData
IQueryTypeParameter
Inherited Members
Namespace: ProjectDawn.Navigation
Assembly: ProjectDawn.Navigation.dll
Syntax
public struct AgentBody : IComponentData, IQueryTypeParameter
Fields
| Improve this Doc View SourceDestination
Final destination that agent will attempt to reach.
Declaration
public float3 Destination
Field Value
Type | Description |
---|---|
float3 |
Force
Force that agent will use to move towards. Calculated from agent position and destination.
Declaration
public float3 Force
Field Value
Type | Description |
---|---|
float3 |
IsStopped
This property holds the stop or resume condition of the agent.
Declaration
public bool IsStopped
Field Value
Type | Description |
---|---|
bool |
RemainingDistance
The distance between the agent's position and the destination. With NavMesh this value will return partial remaining distance not full path.
Declaration
public float RemainingDistance
Field Value
Type | Description |
---|---|
float |
Velocity
The velocity agent is moving.
Declaration
public float3 Velocity
Field Value
Type | Description |
---|---|
float3 |
Properties
| Improve this Doc View SourceDefault
Returns default configuration.
Declaration
public static AgentBody Default { get; }
Property Value
Type | Description |
---|---|
AgentBody |
Speed
Returns the legnth of Velocity.
Declaration
public float Speed { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Improve this Doc View SourceSetDestination(float3)
Sets properties for new agent destination.
Declaration
public void SetDestination(float3 value)
Parameters
Type | Name | Description |
---|---|---|
float3 | value |
Stop()
Sets properties for agent to stop.
Declaration
public void Stop()
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter