group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
CharacterAnimator::Impl Struct Reference
Collaboration diagram for CharacterAnimator::Impl:
[legend]

Public Attributes

const CharacterRigrig = nullptr
 
const AnimationLibrarylibrary = nullptr
 
const ISkinningBackendskinner = nullptr
 
std::array< ozz::animation::SamplingJob::Context, kNumSamplerSlotscontexts
 
std::array< std::vector< ozz::math::SoaTransform >, kNumSamplerSlotsperSamplerLocals
 
std::vector< ozz::math::SoaTransform > blendedLocals
 
std::vector< ozz::math::Float4x4 > models
 
std::vector< glm::mat4 > skinMats
 
std::array< ClipSampler, kNumSamplerSlotssamplers {}
 
Mode currentMode = Mode::Locomotion
 
Mode previousMode = Mode::Locomotion
 
float modeBlendT = 1.0f
 0 = just switched (previous mode still dominant), 1 = fully in new mode.
 
float groupWeightOverride = 0.0f
 Actual (smoothed) weight of the override group.
 
float smoothedSpeed = 0.0f
 
float smoothedForwardSpeed = 0.0f
 Low-pass filtered forward velocity component (u/s).
 
float smoothedRightSpeed = 0.0f
 Low-pass filtered rightward velocity component (u/s).
 
float locomotionPhase = 0.0f
 Shared loco time ratio in [0, 1].
 
float overrideTime = 0.0f
 Independent time ratio for the override slot.
 
bool wallRunMirror = false
 
int headJointIdx = -1
 Runtime index of "mixamorig:Head" (-1 = not found).
 
std::vector< bool > isHeadDescendant
 Per-joint flag: true for head + all children.
 
ClipId debugOverrideId = ClipId::_Count
 
float debugPlaybackSpeedMul = 1.0f
 
std::array< bool, static_cast< size_t >(ClipId::_Count)> missingClipLogged {}
 

Member Data Documentation

◆ blendedLocals

std::vector<ozz::math::SoaTransform> CharacterAnimator::Impl::blendedLocals

◆ contexts

std::array<ozz::animation::SamplingJob::Context, kNumSamplerSlots> CharacterAnimator::Impl::contexts

◆ currentMode

Mode CharacterAnimator::Impl::currentMode = Mode::Locomotion

◆ debugOverrideId

ClipId CharacterAnimator::Impl::debugOverrideId = ClipId::_Count

◆ debugPlaybackSpeedMul

float CharacterAnimator::Impl::debugPlaybackSpeedMul = 1.0f

◆ groupWeightOverride

float CharacterAnimator::Impl::groupWeightOverride = 0.0f

Actual (smoothed) weight of the override group.

◆ headJointIdx

int CharacterAnimator::Impl::headJointIdx = -1

Runtime index of "mixamorig:Head" (-1 = not found).

◆ isHeadDescendant

std::vector<bool> CharacterAnimator::Impl::isHeadDescendant

Per-joint flag: true for head + all children.

◆ library

const AnimationLibrary* CharacterAnimator::Impl::library = nullptr

◆ locomotionPhase

float CharacterAnimator::Impl::locomotionPhase = 0.0f

Shared loco time ratio in [0, 1].

◆ missingClipLogged

std::array<bool, static_cast<size_t>(ClipId::_Count)> CharacterAnimator::Impl::missingClipLogged {}

◆ modeBlendT

float CharacterAnimator::Impl::modeBlendT = 1.0f

0 = just switched (previous mode still dominant), 1 = fully in new mode.

◆ models

std::vector<ozz::math::Float4x4> CharacterAnimator::Impl::models

◆ overrideTime

float CharacterAnimator::Impl::overrideTime = 0.0f

Independent time ratio for the override slot.

◆ perSamplerLocals

std::array<std::vector<ozz::math::SoaTransform>, kNumSamplerSlots> CharacterAnimator::Impl::perSamplerLocals

◆ previousMode

Mode CharacterAnimator::Impl::previousMode = Mode::Locomotion

◆ rig

const CharacterRig* CharacterAnimator::Impl::rig = nullptr

◆ samplers

std::array<ClipSampler, kNumSamplerSlots> CharacterAnimator::Impl::samplers {}

◆ skinMats

std::vector<glm::mat4> CharacterAnimator::Impl::skinMats

◆ skinner

const ISkinningBackend* CharacterAnimator::Impl::skinner = nullptr

◆ smoothedForwardSpeed

float CharacterAnimator::Impl::smoothedForwardSpeed = 0.0f

Low-pass filtered forward velocity component (u/s).

◆ smoothedRightSpeed

float CharacterAnimator::Impl::smoothedRightSpeed = 0.0f

Low-pass filtered rightward velocity component (u/s).

◆ smoothedSpeed

float CharacterAnimator::Impl::smoothedSpeed = 0.0f

◆ wallRunMirror

bool CharacterAnimator::Impl::wallRunMirror = false

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