Class AvoidanceGroup
A SctiptableObject
that represents the avoidance group.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
AvoidanceGroup
Namespace: AlchemyBow.Navigation.Simple.Elements
Assembly: AlchemyBow.Navigation.dll
Syntax
[CreateAssetMenu(fileName = "AvoidanceGroup", menuName = "AlchemyBow/Navigation/AvoidanceGroup")]
public sealed class AvoidanceGroup : ScriptableObject
Methods
| Improve this Doc View SourceAddToGruop(AvoidanceModifier)
Adds the agent to the group.
Declaration
public void AddToGruop(AvoidanceModifier agent)
Parameters
Type | Name | Description |
---|---|---|
AvoidanceModifier | agent | An agent to add. |
CalculateAvoidanceDirection(AvoidanceModifier)
Calculates the avoidance acceleration direction for the agent.
Declaration
public Vector3 CalculateAvoidanceDirection(AvoidanceModifier agent)
Parameters
Type | Name | Description |
---|---|---|
AvoidanceModifier | agent | The agent to the avoidance acceleration direction. |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 | The avoidance acceleration direction for the agent. |
RemoveFromGroup(AvoidanceModifier)
Removes the agent from the group.
Declaration
public void RemoveFromGroup(AvoidanceModifier agent)
Parameters
Type | Name | Description |
---|---|---|
AvoidanceModifier | agent | An agent to remove. |