ezEngine  Release 25.03
ezSkeletonBuilder Class Reference

The skeleton builder class provides the means to build skeleton instances from scratch. This class is not necessary to use skeletons, usually they should be deserialized from data created by the tools. More...

#include <SkeletonBuilder.h>

Classes

struct  BuilderJoint
 

Public Member Functions

ezUInt16 AddJoint (ezStringView sName, const ezTransform &localRestPose, ezUInt16 uiParentIndex=ezInvalidJointIndex)
 Adds a joint to the skeleton Since the only way to add a joint with a parent is through this method the order of joints in the array is guaranteed so that child joints always come after their parent joints.
 
void SetJointLimit (ezUInt16 uiJointIndex, const ezQuat &qLocalOrientation, ezSkeletonJointType::Enum jointType, ezAngle halfSwingLimitY, ezAngle halfSwingLimitZ, ezAngle twistLimitHalfAngle, ezAngle twistLimitCenterAngle, float fStiffness)
 
void SetJointSurface (ezUInt16 uiJointIndex, ezStringView sSurface)
 
void SetJointCollisionLayer (ezUInt16 uiJointIndex, ezUInt8 uiCollsionLayer)
 
void BuildSkeleton (ezSkeleton &ref_skeleton) const
 Creates a skeleton from the accumulated data.
 
bool HasJoints () const
 Returns true if there any joints have been added to the skeleton builder.
 

Protected Attributes

ezDeque< BuilderJointm_Joints
 

Detailed Description

The skeleton builder class provides the means to build skeleton instances from scratch. This class is not necessary to use skeletons, usually they should be deserialized from data created by the tools.


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