Defines a basic hierachial structure of transformation spaces. More...
Inherits Ref.
Public Member Functions | |
| const Mat4 & | getInverseBindPose () |
| Returns the inverse bind pose matrix for this joint. More... | |
| var | getInverseBindPose () |
| Returns the inverse bind pose matrix for this joint. More... | |
| void | updateWorldMat () |
| Update own world matrix and children's. | |
| var | updateWorldMat () |
| Update own world matrix and children's. | |
| const Mat4 & | getWorldMat () |
| Get world matrix. More... | |
| var | getWorldMat () |
| Get world matrix. More... | |
| const std::string & | getName () const |
| Get bone name. More... | |
| void | setAnimationValue (float *trans, float *rot, float *scale, void *tag=nullptr, float weight=1.0f) |
| Set animation value Translate vector Rotation quaternion Scale vector unique tag, only blend animation between different tags blend weight. | |
| var | setAnimationValue ( var trans, var rot, var scale, var nullptr, var 0f) |
| Set animation value Translate vector Rotation quaternion Scale vector unique tag, only blend animation between different tags blend weight. | |
| void | clearBoneBlendState () |
| Clear bone blend states. | |
| var | clearBoneBlendState () |
| Clear bone blend states. | |
| void | setInverseBindPose (const Mat4 &m) |
| Sets the inverse bind pose matrix. More... | |
| void | setOriPose (const Mat4 &m) |
| Sets the bone's original pose. More... | |
| var | setOriPose ( var m) |
| Sets the bone's original pose. More... | |
| void | resetPose () |
| Reset pose to origin. | |
| var | resetPose () |
| Reset pose to origin. | |
| void | updateJointMatrix (Vec4 *matrixPalette) |
| Updates the joint matrix. More... | |
| var | updateJointMatrix ( var matrixPalette) |
| Updates the joint matrix. More... | |
| Bone3D * | getParentBone () |
| Get the parent Bone. More... | |
| var | getParentBone () |
| Get the parent Bone. More... | |
| ssize_t | getChildBoneCount () const |
| Get child bone count. More... | |
| Bone3D * | getChildBoneByIndex (int index) const |
| Get the specified child bone by index The child bone index. More... | |
| void | addChildBone (Bone3D *bone) |
| Add the specified bone as skeleton's child. More... | |
| var | addChildBone ( var bone) |
| Add the specified bone as skeleton's child. More... | |
| void | removeChildBoneByIndex (int index) |
| Remove child bone by index. More... | |
| var | removeChildBoneByIndex ( var index) |
| Remove child bone by index. More... | |
| void | removeChildBone (Bone3D *bone) |
| Remove the specified child bone. More... | |
| var | removeChildBone ( var bone) |
| Remove the specified child bone. More... | |
| void | removeAllChildBone () |
| Remove all child bone. | |
| var | removeAllChildBone () |
| Remove all child bone. | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| local | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. | |
Static Public Member Functions | |
| static Bone3D * | create (const std::string &id) |
| Creates Bone3D object from the specified ID string. More... | |
| var | create ( var id) |
| Creates Bone3D object from the specified ID string. More... | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| local | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| local | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
| local | _scriptObject |
| scriptObject, support for swift | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
| local | _rooted |
| When true, it means that the object was already rooted. | |
| bool | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
| local | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
Defines a basic hierachial structure of transformation spaces.
| const Mat4& getInverseBindPose | ( | ) |
Returns the inverse bind pose matrix for this joint.
Inverse bind pose matrix.
| var getInverseBindPose | ( | ) |
Returns the inverse bind pose matrix for this joint.
Inverse bind pose matrix.
| const Mat4& getWorldMat | ( | ) |
Get world matrix.
The world matrix.
| var getWorldMat | ( | ) |
Get world matrix.
The world matrix.
|
inline |
Get bone name.
The bone's name string.
|
inline |
Get bone name.
The bone's name string.
|
static |
|
static |
| void setInverseBindPose | ( | const Mat4 & | m | ) |
Sets the inverse bind pose matrix.
Mat4 representing the inverse bind pose for this Bone.
| var setInverseBindPose | ( | var | m | ) |
Sets the inverse bind pose matrix.
Mat4 representing the inverse bind pose for this Bone.
| void setOriPose | ( | const Mat4 & | m | ) |
Sets the bone's original pose.
Mat4 representing the original pose for this Bone.
| var setOriPose | ( | var | m | ) |
Sets the bone's original pose.
Mat4 representing the original pose for this Bone.
| void updateJointMatrix | ( | Vec4 * | matrixPalette | ) |
Updates the joint matrix.
The matrix palette to update.
| var updateJointMatrix | ( | var | matrixPalette | ) |
Updates the joint matrix.
The matrix palette to update.
| Bone3D* getParentBone | ( | ) |
| var getParentBone | ( | ) |
| ssize_t getChildBoneCount | ( | ) | const |
Get child bone count.
The child bone count.
| var getChildBoneCount | ( | ) |
Get child bone count.
The child bone count.
| Bone3D* getChildBoneByIndex | ( | int | index | ) | const |
Get the specified child bone by index The child bone index.
The Bone3D object.
| var getChildBoneByIndex | ( | var | index | ) |
Get the specified child bone by index The child bone index.
The Bone3D object.
| void addChildBone | ( | Bone3D * | bone | ) |
Add the specified bone as skeleton's child.
The specified bone.
| var addChildBone | ( | var | bone | ) |
Add the specified bone as skeleton's child.
The specified bone.
| void removeChildBoneByIndex | ( | int | index | ) |
Remove child bone by index.
The specified index
| var removeChildBoneByIndex | ( | var | index | ) |
Remove child bone by index.
The specified index
| void removeChildBone | ( | Bone3D * | bone | ) |
Remove the specified child bone.
The specified child bone.
| var removeChildBone | ( | var | bone | ) |
Remove the specified child bone.
The specified child bone.