Skeleton class

Skeleton wrapper

Available extensions

Constructors

Skeleton(SkeletonData skeletonData)
factory
Skeleton.fromPointer(Pointer<spine_skeleton_wrapper> _ptr)

Properties

bones ArrayBone
no setter
bounds Bounds

Available on Skeleton, provided by the SkeletonExtensions extension

Get the axis-aligned bounding box (AABB) containing all world vertices of the skeleton
no setter
color Color
no setter
constraints ArrayConstraint
no setter
data SkeletonData
no setter
drawOrder ArraySlot
no setter
gravityX double
getter/setter pair
gravityY double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
nativePtr → Pointer<NativeType>
Get the native pointer for FFI calls
no setter
physicsConstraints ArrayPhysicsConstraint
no setter
rootBone Bone?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleX double
getter/setter pair
scaleY double
getter/setter pair
setColor Color
no getter
skin Skin?
no setter
slots ArraySlot
no setter
time double
getter/setter pair
updateCacheList ArrayUpdate
no setter
windX double
getter/setter pair
windY double
getter/setter pair
x double
getter/setter pair
y double
getter/setter pair

Methods

constrained(Posed object) → void
dispose() → void
findBone(String boneName) Bone?
Returns May be NULL.
findSlot(String slotName) Slot?
Returns May be NULL.
getAttachment(String slotName, String attachmentName) Attachment?
Returns May be NULL.
getAttachment2(int slotIndex, String attachmentName) Attachment?
Returns May be NULL.
getPosition() Vector

Available on Skeleton, provided by the SkeletonExtensions extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
physicsRotate(double x, double y, double degrees) → void
Calls {
physicsTranslate(double x, double y) → void
Rotates the physics constraint so next {
printUpdateCache() → void
setAttachment(String slotName, String attachmentName) → void
attachmentName May be empty.
setColor2(double r, double g, double b, double a) → void
setPosition(double x, double y) → void
setScale(double scaleX, double scaleY) → void
setSkin(String skinName) → void
Sets a skin by name (see setSkin).
setSkin2(Skin? newSkin) → void
Attachments from the new skin are attached if the corresponding attachment from the old skin was attached. If there was no old skin, each slot's setup mode attachment is attached from the new skin. After changing the skin, the visible attachments can be reset to those attached in the setup pose by calling See Skeleton::setSlotsToSetupPose() Also, often AnimationState::apply(Skeleton & ) is called before the next time the skeleton is rendered to allow any attachment keys in the current animation(s) to hide or show attachments from the new skin.
setupPose() → void
Sets the bones, constraints, and slots to their setup pose values.
setupPoseBones() → void
Sets the bones and constraints to their setup pose values.
setupPoseSlots() → void
sortBone(Bone? bone) → void
toString() String
A string representation of this object.
inherited
update(double delta) → void
updateCache() → void
Caches information about bones and constraints. Must be called if bones, constraints or weighted path attachments are added or removed.
updateWorldTransform(Physics physics) → void
Updates the world transform for each bone and applies all constraints.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

sortReset(ArrayBone bones) → void