27 :
SLNode(name), _id(id), _skeleton(creator), _radius(0)
71 assert(
_skeleton &&
"Joint didn't have a valid creator");
SLAnimSkeleton keeps track of a skeletons joints and animations.
SLJoint * createJoint(SLuint id)
Specialized SLNode that represents a single joint (or bone) in a skeleton.
SLJoint(SLuint handle, SLAnimSkeleton *creator)
SLMat4f _offsetMat
matrix transforming this joint from bind pose to world pose
SLAnimSkeleton * _skeleton
the skeleton this joint belongs to
void calcMaxRadius(const SLVec3f &vec)
SLJoint * createChild(SLuint id)
SLfloat _radius
info for the mesh this skeleton is bound to (should be moved to a skeleton instance class later,...
SLNode represents a node in a hierarchical scene graph.
void addChild(SLNode *child)
virtual void needUpdate()
const SLMat4f & updateAndGetWM() const
const SLstring & name() const