Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SkeletalAnimation Class Reference

Resource for a skinned animation. More...

#include <SkeletalAnimation.h>

Inheritance diagram for SkeletalAnimation:
RefTarget< SkeletalAnimation >

Classes

class  AnimatedJoint
 Contains the animation for a single joint. More...
 
class  JointState
 Contains the current state of a joint, a local space transformation relative to its parent joint. More...
 
class  Keyframe
 Contains the state of a single joint at a particular time. More...
 

Public Types

using KeyframeVector = Array< Keyframe >
 
using AnimatedJointVector = Array< AnimatedJoint >
 

Public Member Functions

float GetDuration () const
 Get the length (in seconds) of this animation. More...
 
void ScaleJoints (float inScale)
 Scale the size of all joints by inScale. More...
 
void Sample (float inTime, SkeletonPose &ioPose) const
 Get the (interpolated) joint transforms at time inTime. More...
 
const AnimatedJointVectorGetAnimatedJoints () const
 Get joint samples. More...
 
AnimatedJointVectorGetAnimatedJoints ()
 
- Public Member Functions inherited from RefTarget< SkeletalAnimation >
 RefTarget ()=default
 Constructor. More...
 
 RefTarget (const RefTarget &)
 
 ~RefTarget ()
 assert no one is referencing us More...
 
void SetEmbedded () const
 
RefTargetoperator= (const RefTarget &)
 Assignment operator. More...
 
uint32 GetRefCount () const
 Get current refcount of this object. More...
 
void AddRef () const
 Add or release a reference to this object. More...
 
void Release () const
 

Additional Inherited Members

- Static Public Member Functions inherited from RefTarget< SkeletalAnimation >
static int sInternalGetRefCountOffset ()
 INTERNAL HELPER FUNCTION USED BY SERIALIZATION. More...
 
- Protected Attributes inherited from RefTarget< SkeletalAnimation >
atomic< uint32mRefCount
 Current reference count. More...
 
- Static Protected Attributes inherited from RefTarget< SkeletalAnimation >
static constexpr uint32 cEmbedded
 A large value that gets added to the refcount to mark the object as embedded. More...
 

Detailed Description

Resource for a skinned animation.

Member Typedef Documentation

◆ AnimatedJointVector

◆ KeyframeVector

Member Function Documentation

◆ GetAnimatedJoints() [1/2]

AnimatedJointVector & SkeletalAnimation::GetAnimatedJoints ( )
inline

◆ GetAnimatedJoints() [2/2]

const AnimatedJointVector & SkeletalAnimation::GetAnimatedJoints ( ) const
inline

Get joint samples.

◆ GetDuration()

float SkeletalAnimation::GetDuration ( ) const

Get the length (in seconds) of this animation.

◆ Sample()

void SkeletalAnimation::Sample ( float  inTime,
SkeletonPose ioPose 
) const

Get the (interpolated) joint transforms at time inTime.

◆ ScaleJoints()

void SkeletalAnimation::ScaleJoints ( float  inScale)

Scale the size of all joints by inScale.


The documentation for this class was generated from the following files: