Jolt Physics
A multi core friendly Game Physics Engine
|
Instance of a skeleton, contains the pose the current skeleton is in. More...
#include <SkeletonPose.h>
Classes | |
struct | DrawSettings |
Draw settings. More... | |
Public Types | |
using | JointState = SkeletalAnimation::JointState |
using | JointStateVector = Array< JointState > |
using | Mat44Vector = Array< Mat44 > |
Public Member Functions | |
void | SetRootOffset (RVec3Arg inOffset) |
Extra offset applied to the root (and therefore also to all of its children) More... | |
RVec3 | GetRootOffset () const |
void | CalculateJointMatrices () |
Convert the joint states to joint matrices. More... | |
void | CalculateJointStates () |
Convert joint matrices to joint states. More... | |
void | CalculateLocalSpaceJointMatrices (Mat44 *outMatrices) const |
Outputs the joint matrices in local space (ensure that outMatrices has GetJointCount() elements, assumes that values in GetJoints() is up to date) More... | |
void | Draw (const DrawSettings &inDrawSettings, DebugRenderer *inRenderer, RMat44Arg inOffset=RMat44::sIdentity()) const |
Draw current pose. More... | |
Skeleton | |
void | SetSkeleton (const Skeleton *inSkeleton) |
const Skeleton * | GetSkeleton () const |
Properties of the joints | |
uint | GetJointCount () const |
const JointStateVector & | GetJoints () const |
JointStateVector & | GetJoints () |
const JointState & | GetJoint (int inJoint) const |
JointState & | GetJoint (int inJoint) |
Joint matrices | |
const Mat44Vector & | GetJointMatrices () const |
Mat44Vector & | GetJointMatrices () |
const Mat44 & | GetJointMatrix (int inJoint) const |
Mat44 & | GetJointMatrix (int inJoint) |
Instance of a skeleton, contains the pose the current skeleton is in.
using SkeletonPose::Mat44Vector = Array<Mat44> |
void SkeletonPose::CalculateJointMatrices | ( | ) |
Convert the joint states to joint matrices.
void SkeletonPose::CalculateJointStates | ( | ) |
Convert joint matrices to joint states.
void SkeletonPose::CalculateLocalSpaceJointMatrices | ( | Mat44 * | outMatrices | ) | const |
Outputs the joint matrices in local space (ensure that outMatrices has GetJointCount() elements, assumes that values in GetJoints() is up to date)
void SkeletonPose::Draw | ( | const DrawSettings & | inDrawSettings, |
DebugRenderer * | inRenderer, | ||
RMat44Arg | inOffset = RMat44::sIdentity() |
||
) | const |
Draw current pose.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Extra offset applied to the root (and therefore also to all of its children)
JPH_NAMESPACE_BEGIN void SkeletonPose::SetSkeleton | ( | const Skeleton * | inSkeleton | ) |