Class MovementModifier
An abstract component that can modify SimpleAgent
motion by adding acceleration in a certain direction.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
MovementModifier
Namespace: AlchemyBow.Navigation.Simple.Elements
Assembly: AlchemyBow.Navigation.dll
Syntax
public abstract class MovementModifier : MonoBehaviour
Properties
| Improve this Doc View SourceStrength
Gets or sets the ratio between the acceleration added by the modifier and the maximum acceleration of the SimpleAgent
.
Declaration
public float Strength { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The ratio between the acceleration added by the modifier and the maximum acceleration of the |
Methods
| Improve this Doc View SourceCalculateDirection()
Calculates the direction of the modifier acceleration.
Declaration
public abstract Vector3 CalculateDirection()
Returns
Type | Description |
---|---|
UnityEngine.Vector3 | The direction of the modifier acceleration. |