AnimationAsset struct

Runtime animation clip loaded from a .tnxanim file. Holds per-bone keyframe tracks plus optional notify and root-motion data (M2+).

Public functions

auto EvaluateBone(uint32_t boneIndex, float timestamp) const -> BoneTransform
M1: linear keyframe interp. M3: replaced by CurveHandle evaluation.
auto EvaluateRootMotionDelta(float fromTime, float toTime) const -> BoneTransform
Returns the root-motion translation delta over [fromTime, toTime]. M2+.

Public variables

float duration
uint32_t boneCount
std::vector<AnimBoneTrack> boneTracks
std::vector<AnimKeyframe> keyframes
std::vector<AnimNotifyDef> notifies
bool hasRootMotion
std::vector<AnimKeyframe> rootMotionTrack