Classes

Animation/Assets

Brief descriptions

Structures

nau::animation::data::AnimationPlaybackData

Encapsulates animation playback parameters.

nau::SkeletonJoint

Classes

nau::animation::data::AnimationAssetView

Provides functionality to extract animation and playback data from an animation asset.

nau::SkeletonAssetView

Detailed information

animation::data::AnimationPlaybackData

engine/core/modules/animation/include/nau/animation/assets/animation_asset.h

struct AnimationPlaybackData

Encapsulates animation playback parameters.

Public Members

AnimationInterpolationMethod interpolationMethod

SkeletonJoint

engine/core/modules/animation/include/nau/animation/assets/skeleton_asset.h

struct SkeletonJoint

Public Members

unsigned parentIndex
eastl::string jointName

animation::data::AnimationAssetView

engine/core/modules/animation/include/nau/animation/assets/animation_asset.h

class AnimationAssetView : public nau::IAssetView

Provides functionality to extract animation and playback data from an animation asset.

Public Functions

nau::Ptr<Animation> getAnimation()

Retrieves animation object extracted from the asset.

Returns:

A pointer to the animation object.

const AnimationPlaybackData &getPlaybackData() const

Reteieves animation playback data extracted from the asset.

Returns:

Animation playback data.

Public Static Functions

static nau::async::Task<nau::Ptr<AnimationAssetView>> createFromAssetAccessor(nau::Ptr<> accessor)

Creates a view from an animation asset accessor.

Parameters:

accessor[in] A pointer to IAnimationAssetAccessor interface.

Returns:

Task object providing operation status as well as access to the created view.

static nau::Ptr<AnimationAssetView> createFromOzzPath(eastl::string_view path)

Creates view from an ozz skeletal animation asset.

Parameters:

path[in] Path to ozz file.

Returns:

Task object providing operation status as well as access to the created view.

Private Members

nau::Ptr<Animation> m_animation
AnimationPlaybackData m_playbackData

SkeletonAssetView

engine/core/modules/animation/include/nau/animation/assets/skeleton_asset.h

class SkeletonAssetView : public nau::IAssetView

Public Functions

const eastl::vector<math::Matrix4> &getInverseBindTransforms() const
const eastl::vector<math::Matrix4> &getDefaultPoseTransforms() const
const ozz::animation::Skeleton &getSkeleton() const
const eastl::vector<SkeletonJoint> &getJoints() const

Public Static Functions

static async::Task<nau::Ptr<SkeletonAssetView>> createFromAssetAccessor(nau::Ptr<> accessor)

Private Members

eastl::vector<SkeletonJoint> joints
eastl::vector<math::Matrix4> inverseBindTransforms
eastl::vector<math::Matrix4> defaultPoseTransforms
ozz::animation::Skeleton skeleton