Foundation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FAnimChannel Struct Reference

A single animated component of a single joint: sorted keyframe times + packed values. More...

#include <Animation.hpp>

Public Member Functions

 FAnimChannel (Allocator *alloc=GLOBAL_ALLOC)
 

Public Attributes

uint32_t joint {0}
 
FAnimPath path {FAnimPath::Translation}
 
FAnimInterp interp {FAnimInterp::Linear}
 
Vector< float > times
 
Vector< float > values
 

Detailed Description

A single animated component of a single joint: sorted keyframe times + packed values.

Values are packed component-major, one key after another: Translation/Scale store 3 floats/key, Rotation stores 4 (xyzw). FAnimInterp::CubicSpline stores 3 sub-tuples/key in glTF order (in-tangent, value, out-tangent). Times are seconds, strictly ascending; sampling clamps to the first/last key (looping is the caller's choice).

Constructor & Destructor Documentation

◆ FAnimChannel()

FAnimChannel::FAnimChannel ( Allocator alloc = GLOBAL_ALLOC)
inlineexplicit

Member Data Documentation

◆ interp

FAnimInterp FAnimChannel::interp {FAnimInterp::Linear}

◆ joint

uint32_t FAnimChannel::joint {0}

◆ path

FAnimPath FAnimChannel::path {FAnimPath::Translation}

◆ times

Vector<float> FAnimChannel::times

◆ values

Vector<float> FAnimChannel::values

The documentation for this struct was generated from the following file: