group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
AnimSlot Struct Reference

One slot in an entity's blend stack. More...

#include <AnimSnapshot.hpp>

Public Attributes

std::uint8_t clipIdRaw = 0xFFu
 Raw uint8_t cast of ClipId.
float timeRatio = 0.0f
 Normalised playhead position in [0, 1] over the clip's duration.
float weight = 0.0f
 Blend weight in [0, 1].

Detailed Description

One slot in an entity's blend stack.

Member Data Documentation

◆ clipIdRaw

std::uint8_t AnimSlot::clipIdRaw = 0xFFu

Raw uint8_t cast of ClipId.

0xFF (== ClipId::_Count today) means "slot inactive". Stored as raw to avoid pulling the ozz/animation lib into shared headers.

◆ timeRatio

float AnimSlot::timeRatio = 0.0f

Normalised playhead position in [0, 1] over the clip's duration.

Matches ClipSampler::timeRatio.

◆ weight

float AnimSlot::weight = 0.0f

Blend weight in [0, 1].

Slots with weight == 0 are "inactive" — the animator skips them on sample/blend.


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