#import <CC3VertexSkinning.h>
CC3Bone is the building block of skeletons that control the deformation of a skin mesh.
When building a skeleton, bones are assembled in a structural assembly, from a root bone out to limb or branch bones. For example, a skeleton for a human character might start with a root spine bone, to which are attached upper-arm and thigh bones, to which are attached, forearm and shin bones, to which are attached hand and foot bones, and so on.
In this structual assembly, moving an upper-arm bone to cause the character to reach out, carries the forearm and hand bones along with it. Movement of the forearm bone is then performed relative to the upper-arm bone, and movement of the hand bone is performed relative to the forearm, and so on.
CC3Bones are simply specialized structural nodes, and have no content of their own to draw. However, individual bones are referenced by skin sections of the skin mesh node, and the transform matrices of the bones influence the transformations of the vertices of the skin mesh, as the skeleton moves.
|
readnonatomicretain |
Returns the inverse of the transform matrix of this bone, relative to the coordinate system of the skeleton of which this bone is a part, that corresponds to the orientation of this bone when the skeleton is in its rest pose.
The returned matrix is the inverse of the matrix returned by the skeletalTransformMatrix property, at the point where the skeleton is in its rest pose (before any further transforms are applied to the bones in the skeleton). The rest pose of the skeleton corresponds to the undeformed skin mesh. Changes to the transform of this bone, relative to this rest pose, will deform the mesh to create soft-body movement of the mesh vertices.
The value of this property is set from the value of the skeletalTransformMatrix whenever the bindRestPose method is invoked.
|
readnonatomicretain |
Returns the transform matrix of this bone, relative to the coordinate system of the skeleton of which this bone is a part.
The root of the skeleton is the nearest ancestor CC3SoftBodyNode.