ArmatureΒΆ
Inherited: NativeBehaviour
DescriptionΒΆ
An armature in Thunder Engine can be thought of as similar to the armature of a real skeleton, and just like a real skeleton. These bones can be moved around and anything that they are attached to or associated with will move and deform in a similar way. An armature uses the Transform component in a child object like a bone structure.
Public MethodsΒΆ
void |
addInstance (MaterialInstance * instance) |
Pose * |
bindPose () const |
void |
removeInstance (MaterialInstance * instance) |
void |
setBindPose (Pose * pose) |
Static MethodsΒΆ
None
Methods DescriptionΒΆ
void Armature::addInstance (MaterialInstance * instance)
Add material instance to upload updated skeletal data to GPU
Pose * Armature::bindPose () const
Returns a bind pose of the bone structure.
See also setBindPose().
void Armature::removeInstance (MaterialInstance * instance)
Remove material instance to stop uploading data to GPU
void Armature::setBindPose (Pose * pose)
Sets a bind (initial) pose of the bone structure.
See also bindPose().