Jolt Physics
A multi core friendly Game Physics Engine
|
Resource for a skinned animation. More...
#include <SkeletalAnimation.h>
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. | |
void | ScaleJoints (float inScale) |
Scale the size of all joints by inScale. | |
void | Sample (float inTime, SkeletonPose &ioPose) const |
Get the (interpolated) joint transforms at time inTime. | |
const AnimatedJointVector & | GetAnimatedJoints () const |
Get joint samples. | |
AnimatedJointVector & | GetAnimatedJoints () |
Public Member Functions inherited from RefTarget< SkeletalAnimation > | |
RefTarget ()=default | |
Constructor. | |
RefTarget (const RefTarget &) | |
~RefTarget () | |
assert no one is referencing us | |
void | SetEmbedded () const |
RefTarget & | operator= (const RefTarget &) |
Assignment operator. | |
uint32 | GetRefCount () const |
Get current refcount of this object. | |
void | AddRef () const |
Add or release a reference to this object. | |
void | Release () const |
Additional Inherited Members | |
Static Public Member Functions inherited from RefTarget< SkeletalAnimation > | |
static int | sInternalGetRefCountOffset () |
INTERNAL HELPER FUNCTION USED BY SERIALIZATION. | |
Protected Attributes inherited from RefTarget< SkeletalAnimation > | |
atomic< uint32 > | mRefCount |
Current reference count. | |
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. | |
Resource for a skinned animation.
|
inline |
|
inline |
Get joint samples.
float SkeletalAnimation::GetDuration | ( | ) | const |
Get the length (in seconds) of this animation.
void SkeletalAnimation::Sample | ( | float | inTime, |
SkeletonPose & | ioPose | ||
) | const |
Get the (interpolated) joint transforms at time inTime.
void SkeletalAnimation::ScaleJoints | ( | float | inScale | ) |
Scale the size of all joints by inScale.