GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::Model::AnimationState Struct Reference

State of an animation affecting a pose. More...

#include <GREM/resource/Model.hpp>

Public Attributes

AnimationView animation
 Animation to apply.
Duration time {}
 Current animation time from the start of the animation.
float blendWeight = 1.0f
 Normalized overall blend weight of this animation's influence on the pose.
Span< const float > jointBlendWeights {}
 Normalized blend weights of each joint's influence on the pose.
Span< const float > morphTargetWeightBlendWeights {}
 Normalized blend weights of each morph target weight's influence on the pose.
bool looping = true
 Whether the animation time should be wrapped or clamped when out of range of the animation.

Detailed Description

State of an animation affecting a pose.

Member Data Documentation

◆ animation

AnimationView grem::resource::Model::AnimationState::animation

Animation to apply.

All joint and morph target weight indices referenced by the animation must be in range of the initial joints and morph target weights of the pose being animated.

◆ time

Duration grem::resource::Model::AnimationState::time {}

Current animation time from the start of the animation.

◆ blendWeight

float grem::resource::Model::AnimationState::blendWeight = 1.0f

Normalized overall blend weight of this animation's influence on the pose.

◆ jointBlendWeights

Span<const float> grem::resource::Model::AnimationState::jointBlendWeights {}

Normalized blend weights of each joint's influence on the pose.

Must either be empty or have a size equal to the number of joints in the pose being animated.

◆ morphTargetWeightBlendWeights

Span<const float> grem::resource::Model::AnimationState::morphTargetWeightBlendWeights {}

Normalized blend weights of each morph target weight's influence on the pose.

Must either be empty or have a size equal to the number of morph target weights in the pose being animated.

◆ looping

bool grem::resource::Model::AnimationState::looping = true

Whether the animation time should be wrapped or clamped when out of range of the animation.


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