AttackDirectionAnimationLayerLerpSettings.LayerAnimation
A class in Root.Township, Alta.Intelligence.
Per-creature driver made by AttackDirectionAnimationLayerLerpSettings: sets a networked animator layer weight, which lerps on its own.
- Listed in Creatures and AI
- Nested in
AttackDirectionAnimationLayerLerpSettings - Inherits or implements
IAttackDirectionAnimation
Constructors
| Member | What it is |
|---|---|
LayerAnimation() | Creates an AttackDirectionAnimationLayerLerpSettings.LayerAnimation with default values. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private AnimatedLayerWeightLerp animatedProperty | The networked animator layer weight being driven. |
private float target | Weight the layer should go to. |
Methods
4 private and internal methods
| Member | What it is |
|---|---|
private void Alta.Intelligence.IAttackDirectionAnimation.Disable() | Sets the target and layer weight to 0, logging "Error here" if the weight is still above 0 and not lerping. |
private void Alta.Intelligence.IAttackDirectionAnimation.SetDirection(int direction) | Sets the target weight to the direction, clamped to at least 0. |
private void Alta.Intelligence.IAttackDirectionAnimation.Setup(NetworkAnimator animator, string parameterName) | Looks up the named layer weight on the creature's NetworkAnimator and starts the target at its current value. |
private void Alta.Intelligence.IAttackDirectionAnimation.Update(float lerp) | Sets the layer weight to the target. The lerp amount is ignored because the property lerps itself. |