Class AvoidanceModifier
The MovementModifier
that provides a simple avoidance behavior.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
AvoidanceModifier
Inherited Members
Namespace: AlchemyBow.Navigation.Simple.Elements
Assembly: AlchemyBow.Navigation.dll
Syntax
public sealed class AvoidanceModifier : MovementModifier
Properties
| Improve this Doc View SourceAvoidanceGroup
Gets or sets the group to which the object belongs.
Declaration
public AvoidanceGroup AvoidanceGroup { get; set; }
Property Value
Type | Description |
---|---|
AvoidanceGroup | The group to which the object belongs. |
Height
Gets or sets the avoidance height for the agent.
Declaration
public float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The avoidance height. |
Radius
Gets or sets the avoidance radius for the agent.
Declaration
public float Radius { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The avoidance radius. |
Methods
| Improve this Doc View SourceCalculateDirection()
Calculates the avoidance acceleration direction.
Declaration
public override Vector3 CalculateDirection()
Returns
Type | Description |
---|---|
UnityEngine.Vector3 | The avoidance acceleration direction. |