COGS
Computer Graphics Structures library
cogs::SkeletonPose Struct Reference

Structure used for storage of specific configuration of bone transformations in a skeleton. More...

Public Member Functions

void InterpolateWith (const SkeletonPose &target_pose, float target_weight, SkeletonPose *out_pose) const
 Interpolates between this pose and target pose. More...
 

Data Fields

Transform root_transform
 Transformation matrix used for all bones in the skeleton.
 
std::vector< BoneTransform > bone_transforms
 Per-bone specific transformations.
 

Detailed Description

Structure used for storage of specific configuration of bone transformations in a skeleton.

Member Function Documentation

◆ InterpolateWith()

void cogs::SkeletonPose::InterpolateWith ( const SkeletonPose &  target_pose,
float  target_weight,
SkeletonPose *  out_pose 
) const

Interpolates between this pose and target pose.

Target pose must be designed for same skeleton. cogs::Transform::InterpolateWith is used for each corresponding pair of transformations.