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

One active sampler slot contributing to the per-frame blend. More...

#include <CharacterAnimator.hpp>

Public Attributes

ClipId id = ClipId::Idle
 Which clip.
 
float timeRatio = 0.0f
 Normalised playback time ∈ [0, 1].
 
float playbackSpeed = 1.0f
 Multiplier applied to clip duration when advancing.
 
float weight = 0.0f
 Blend weight; slots with weight 0 are skipped.
 
bool active = false
 False = slot unused this frame.
 

Detailed Description

One active sampler slot contributing to the per-frame blend.

Member Data Documentation

◆ active

bool ClipSampler::active = false

False = slot unused this frame.

◆ id

ClipId ClipSampler::id = ClipId::Idle

Which clip.

◆ playbackSpeed

float ClipSampler::playbackSpeed = 1.0f

Multiplier applied to clip duration when advancing.

◆ timeRatio

float ClipSampler::timeRatio = 0.0f

Normalised playback time ∈ [0, 1].

◆ weight

float ClipSampler::weight = 0.0f

Blend weight; slots with weight 0 are skipped.


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