Class RunningAnimation
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class RunningAnimation
- Inheritance
-
RunningAnimation
- Inherited Members
- Extension Methods
Fields
Active
The animation is required to be active: if not started it should now start; if it ever ceases to be Active it should do whatever stop behavior is required (e.g. ease-out)
public bool Active
Field Value
Animation
public Animation Animation
Field Value
BlendedWeight
public float BlendedWeight
Field Value
CurrentFrame
public float CurrentFrame
Field Value
EasingFactor
public float EasingFactor
Field Value
ElementWeights
public ShapeElementWeights[] ElementWeights
Field Value
Iterations
public int Iterations
Field Value
Running
The animation is currently running in any way, including play-till-end after it is no longer active
public bool Running
Field Value
ShouldPlayTillEnd
public bool ShouldPlayTillEnd
Field Value
ShouldRewind
public bool ShouldRewind
Field Value
SoundPlayedAtIteration
public int SoundPlayedAtIteration
Field Value
meta
public AnimationMetaData meta
Field Value
Properties
AnimProgress
Between 0 and 1
public float AnimProgress { get; }
Property Value
Methods
EaseOut(float)
public void EaseOut(float dt)
Parameters
dt
float
LoadWeights(ShapeElement[])
public void LoadWeights(ShapeElement[] rootElements)
Parameters
rootElements
ShapeElement[]
Progress(float, float)
public void Progress(float dt, float walkspeed)
Parameters
Stop()
public void Stop()