XII Release 0.1.0
Loading...
Searching...
No Matches
xiiSkeletonBuilder 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

xiiUInt16 AddJoint (xiiStringView sName, const xiiTransform &localRestPose, xiiUInt16 uiParentIndex=xiiInvalidJointIndex)
 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 (xiiUInt16 uiJointIndex, const xiiQuat &qLocalOrientation, xiiSkeletonJointType::Enum jointType, xiiAngle halfSwingLimitY, xiiAngle halfSwingLimitZ, xiiAngle twistLimitHalfAngle, xiiAngle twistLimitCenterAngle, float fStiffness)
 
void SetJointSurface (xiiUInt16 uiJointIndex, xiiStringView sSurface)
 
void SetJointCollisionLayer (xiiUInt16 uiJointIndex, xiiUInt8 uiCollsionLayer)
 
void BuildSkeleton (xiiSkeleton &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

xiiDeque< 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: