Classes¶
Animation/Assets
Brief descriptions¶
Structures |
|
Encapsulates animation playback parameters. |
|
Classes |
|
Provides functionality to extract animation and playback data from an animation asset. |
|
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¶
-
AnimationInterpolationMethod interpolationMethod¶
SkeletonJoint¶
engine/core/modules/animation/include/nau/animation/assets/skeleton_asset.h
-
struct SkeletonJoint¶
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.
-
nau::Ptr<Animation> getAnimation()¶
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¶
-
const eastl::vector<math::Matrix4> &getInverseBindTransforms() const¶