![]() |
ezEngine
Release 25.03
|
The skeleton class encapsulates the information about the joint structure for a model. More...
#include <Skeleton.h>
Public Member Functions | |
ezSkeleton (ezSkeleton &&rhs) | |
void | operator= (ezSkeleton &&rhs) |
ezUInt16 | GetJointCount () const |
Returns the number of joints in the skeleton. | |
const ezSkeletonJoint & | GetJointByIndex (ezUInt16 uiIndex) const |
Returns the nth joint. | |
ezUInt16 | FindJointByName (const ezTempHashedString &sName) const |
Allows to find a specific joint in the skeleton by name. Returns ezInvalidJointIndex if not found. | |
void | Save (ezStreamWriter &inout_stream) const |
Checks if two skeletons are compatible (same joint count and hierarchy) More... | |
void | Load (ezStreamReader &inout_stream) |
Loads the skeleton from the given stream. | |
bool | IsJointDescendantOf (ezUInt16 uiJoint, ezUInt16 uiExpectedParent) const |
const ozz::animation::Skeleton & | GetOzzSkeleton () const |
ezUInt64 | GetHeapMemoryUsage () const |
Public Attributes | |
ezEnum< ezBasisAxis > | m_BoneDirection |
The direction in which the bones shall point for visualization. | |
Protected Attributes | |
friend | ezSkeletonBuilder |
ezDynamicArray< ezSkeletonJoint > | m_Joints |
ezUniquePtr< ozz::animation::Skeleton > | m_pOzzSkeleton |
The skeleton class encapsulates the information about the joint structure for a model.
void ezSkeleton::Save | ( | ezStreamWriter & | inout_stream | ) | const |
Checks if two skeletons are compatible (same joint count and hierarchy)
Saves the skeleton in a given stream.