6 #ifndef COGS_SKELETON_ACTION_H 7 #define COGS_SKELETON_ACTION_H 9 #include <glm/gtc/quaternion.hpp> 11 #include <COGS/Interpolator.h> 22 struct COGS_API SkeletonAction
26 Interpolator<glm::quat> rotation;
27 Interpolator<glm::vec3> position;
29 [[nodiscard]]
bool IsEmpty()
const;
34 Interpolator<glm::quat> rotation;
35 Interpolator<glm::vec3> offset;
36 Interpolator<glm::vec3> scaling;
37 Interpolator<float> length;
39 [[nodiscard]]
bool IsEmpty()
const;
41 void AdjustTransformToTime(
float time, BoneTransform *out_trans)
const;
43 [[nodiscard]]
float GetDuration()
const;
47 [[nodiscard]]
float GetDuration()
const;
50 [[nodiscard]]
bool IsEmpty()
const;
53 void AdjustPoseToTime(
float time,
const Skeleton &target_skeleton, SkeletonPose *out_pose)
const;
56 [[nodiscard]] std::vector<SkeletonPose> BakePoseAnimation(
const Skeleton &target_skeleton)
const;
61 RootChannels root_channels;
62 std::map<std::string, BoneChannels> bone_channels;
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures...
Definition: AabbHierarchy.h:8