Table of Contents

Class AnimationFrame

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class AnimationFrame
Inheritance
AnimationFrame
Inherited Members

Constructors

AnimationFrame()

public AnimationFrame()

Fields

FrameNumber

The frame number.

public int FrameNumber

Field Value

int

RootElementTransforms

The transformations for the root element of the frame.

public List<ElementPose> RootElementTransforms

Field Value

List<ElementPose>

animTransforms

The transformations for this frame.

public float[][] animTransforms

Field Value

float[][]

transformationMatrices

The transformation matricies for this frame

public float[] transformationMatrices

Field Value

float[]

Methods

FinalizeMatrices(Dictionary<int, AnimationJoint>)

Finalizes the matricies with joints assigned by their ID.

public void FinalizeMatrices(Dictionary<int, AnimationJoint> jointsById)

Parameters

jointsById Dictionary<int, AnimationJoint>

SetTransform(int, float[])

Sets the transform of a particular joint ID.

public void SetTransform(int jointId, float[] modelTransform)

Parameters

jointId int
modelTransform float[]