ezEngine  Release 25.03
ezSkeleton Class Reference

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 ezSkeletonJointGetJointByIndex (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< ezBasisAxism_BoneDirection
 The direction in which the bones shall point for visualization.
 

Protected Attributes

friend ezSkeletonBuilder
 
ezDynamicArray< ezSkeletonJointm_Joints
 
ezUniquePtr< ozz::animation::Skeleton > m_pOzzSkeleton
 

Detailed Description

The skeleton class encapsulates the information about the joint structure for a model.

Member Function Documentation

◆ Save()

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.


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