![]() |
Plasma Engine
2.0
|
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 | |
plUInt16 | AddJoint (plStringView sName, const plTransform &localRestPose, plUInt16 uiParentIndex=plInvalidJointIndex) |
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 (plUInt16 uiJointIndex, const plQuat &qLocalOrientation, plSkeletonJointType::Enum jointType, plAngle halfSwingLimitY, plAngle halfSwingLimitZ, plAngle twistLimitHalfAngle, plAngle twistLimitCenterAngle, float fStiffness) |
void | SetJointSurface (plUInt16 uiJointIndex, plStringView sSurface) |
void | SetJointCollisionLayer (plUInt16 uiJointIndex, plUInt8 uiCollsionLayer) |
void | BuildSkeleton (plSkeleton &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 | |
plDeque< BuilderJoint > | m_Joints |
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.