Class AnimationMovement
- Assembly
- ValveResourceFormat.dll
Represents root motion movement data for an animation.
public class AnimationMovement
Inheritance
Inherited Members
Constructors
AnimationMovement(KVObject)
Initializes a new instance of the ValveResourceFormat.ResourceTypes.ModelAnimation.AnimationMovement class.
public AnimationMovement(KVObject frameBlock)
Parameters
frameBlock
KVObject
Properties
Angle
Gets the rotation angle in degrees.
public float Angle { get; }
Property Value
EndFrame
Gets the ending frame for this movement.
public int EndFrame { get; }
Property Value
MotionFlags
Gets the motion flags for this movement.
public ModelAnimationMotionFlags MotionFlags { get; }
Property Value
Position
Gets the translation offset parameter stored for this segment.
public Vector3 Position { get; }
Property Value
V0
Gets the first motion scalar value (v0) for this segment.
public float V0 { get; }
Property Value
V1
Gets the second motion scalar value (v1) for this segment.
public float V1 { get; }
Property Value
Vector
Gets the motion vector parameter stored for this segment.
public Vector3 Vector { get; }
Property Value
Methods
Lerp(AnimationMovement, AnimationMovement, float)
Interpolates linearly between two movement states using t
in the range [0, 1].
public static AnimationMovement.MovementData Lerp(AnimationMovement a, AnimationMovement b, float t)