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

