Urho3D
|
Hierarchical collection of bones. @nocount. More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Graphics/Skeleton.h>
Public Member Functions | |
Skeleton () | |
Construct an empty skeleton. | |
~Skeleton () | |
Destruct. | |
bool | Load (Deserializer &source) |
Read from a stream. Return true if successful. | |
bool | Save (Serializer &dest) const |
Write to a stream. Return true if successful. | |
void | Define (const Skeleton &src) |
Define from another skeleton. | |
void | SetRootBoneIndex (i32 index) |
Set root bone's index. | |
void | ClearBones () |
Clear bones. | |
void | Reset () |
Reset all animating bones to initial positions. | |
const Vector< Bone > & | GetBones () const |
Return all bones. | |
Vector< Bone > & | GetModifiableBones () |
Return modifiable bones. | |
i32 | GetNumBones () const |
Return number of bones. | |
Bone * | GetRootBone () |
Return root bone. | |
i32 | GetBoneIndex (const String &boneName) const |
Return index of the bone by name. Return NINDEX if not found. | |
i32 | GetBoneIndex (const StringHash &boneNameHash) const |
Return index of the bone by name hash. Return NINDEX if not found. | |
i32 | GetBoneIndex (const Bone *bone) const |
Return index of the bone by the bone pointer. Return NINDEX if not found. | |
Bone * | GetBoneParent (const Bone *bone) |
Return parent of the given bone. Return null for root bones. | |
Bone * | GetBone (i32 index) |
Return bone by index. | |
Bone * | GetBone (const String &name) |
Return bone by name. | |
Bone * | GetBone (const char *name) |
Return bone by name. | |
Bone * | GetBone (const StringHash &boneNameHash) |
Return bone by name hash. | |
void | ResetSilent () |
Reset all animating bones to initial positions without marking the nodes dirty. Requires the node dirtying to be performed later. | |
Private Attributes | |
Vector< Bone > | bones_ |
Bones. | |
i32 | rootBoneIndex_ |
Root bone index. | |
Hierarchical collection of bones. @nocount.