Table of Contents

Class AnimationMovement

Namespace
ValveResourceFormat.ResourceTypes.ModelAnimation
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

float

EndFrame

Gets the ending frame for this movement.

public int EndFrame { get; }

Property Value

int

MotionFlags

Gets the motion flags for this movement.

public ModelAnimationMotionFlags MotionFlags { get; }

Property Value

ModelAnimationMotionFlags

Position

Gets the translation offset parameter stored for this segment.

public Vector3 Position { get; }

Property Value

Vector3

V0

Gets the first motion scalar value (v0) for this segment.

public float V0 { get; }

Property Value

float

V1

Gets the second motion scalar value (v1) for this segment.

public float V1 { get; }

Property Value

float

Vector

Gets the motion vector parameter stored for this segment.

public Vector3 Vector { get; }

Property Value

Vector3

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)

Parameters

a AnimationMovement
b AnimationMovement
t float

Returns

AnimationMovement.MovementData