Module flower.spine.Bone
Skeleton bone.
Inherited from MOAITransform
Info:
- Release: V1.0
- Author: Vavius
Functions
Bone:init (boneData, skeleton) | Constructor. |
Bone:setToBindPose () | Set transform to initial position and rotation |
Bone:setParent (parent) | Attach this bone to new parent |
Functions
- Bone:init (boneData, skeleton)
-
Constructor.
Parameters:
- boneData bone parameters table. Fields: (name, x, y, scaleX, scaleY, rotation, length, parent)
- skeleton skeleton object
- Bone:setToBindPose ()
- Set transform to initial position and rotation
- Bone:setParent (parent)
-
Attach this bone to new parent
Parameters:
- parent parent bone object reference