|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
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. | |
State of an animation affecting a pose.
| 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.
| Duration grem::resource::Model::AnimationState::time {} |
Current animation time from the start of the animation.
| float grem::resource::Model::AnimationState::blendWeight = 1.0f |
Normalized overall blend weight of this animation's influence on the pose.
| 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.
| 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.
| bool grem::resource::Model::AnimationState::looping = true |
Whether the animation time should be wrapped or clamped when out of range of the animation.