Classes

Animation/Skeletal Animation

Brief descriptions

Classes

nau::animation::AnimationMixer

Blends multiple animations (used for skeletal animations).

nau::animation::SkeletalAnimation

nau::animation::SkeletalAnimationMixer

Detailed information

animation::AnimationMixer

engine/core/modules/animation/include/nau/animation/playback/animation_mixer.h

class AnimationMixer : public virtual IRefCounted

Blends multiple animations (used for skeletal animations).

Subclassed by nau::animation::SkeletalAnimationMixer

Public Functions

virtual void blendAnimations(const IAnimatable::Ptr &target) = 0
virtual void computeFinalTransforms(const IAnimatable::Ptr &target) = 0

Private Functions

NAU_CLASS(nau::animation::AnimationMixer, rtti::RCPolicy::Concurrent, IRefCounted)

animation::SkeletalAnimation

engine/core/modules/animation/include/nau/animation/playback/animation_skeleton.h

class SkeletalAnimation : public nau::animation::AnimationImpl<ISkeletonAnimatableKeyFrameType>

Public Functions

virtual void apply(int frame, AnimationState &animationState) const override

Animates the target according to the current animation state.

Parameters:
  • frame[in] Current frame index.

  • animationState[in] Animation state.

virtual float getDurationInFrames() const override

Retrieves the animation duration in frames.

Returns:

Animation duration in frames.

Public Members

ozz::animation::Animation ozzAnimation

animation::SkeletalAnimationMixer

engine/core/modules/animation/include/nau/animation/playback/animation_skeleton.h

class SkeletalAnimationMixer : public nau::animation::AnimationMixer

Public Functions

virtual void blendAnimations(const IAnimatable::Ptr &target) override
virtual void computeFinalTransforms(const IAnimatable::Ptr &target) override

Private Functions

NAU_CLASS_(nau::animation::SkeletalAnimationMixer, nau::animation::AnimationMixer, IRefCounted)