Stores the setup pose for a {@link Bone}.

Constructor

new(index:Int, name:String, parent:BoneData)

Variables

@:value(0)index:Int = 0

@:value(0)length:Float = 0

@:value(0)x:Float = 0

@:value(0)y:Float = 0

@:value(0)rotation:Float = 0

@:value(1)scaleX:Float = 1

@:value(1)scaleY:Float = 1

@:value(0)shearX:Float = 0

@:value(0)shearY:Float = 0

@:value(TransformMode.normal)transformMode:TransformMode = TransformMode.normal

@:value(false)skinRequired:Bool = false

@:value(new Color(0.61, 0.61, 0.61, 1))color:Color = new Color(0.61, 0.61, 0.61, 1)

Methods

getIndex():Int

The index of the bone in {@link Skeleton#getBones()}.

getName():String

The name of the bone, which is unique across all bones in the skeleton.

getLength():Float

The bone's length.

getX():Float

The local x translation.

getY():Float

The local y translation.

getRotation():Float

The local rotation.

getScaleX():Float

The local scaleX.

getScaleY():Float

The local scaleY.

setScale(scaleX:Float, scaleY:Float):Void

getShearX():Float

The local shearX.

getShearY():Float

The local shearX.

getTransformMode():TransformMode

The transform mode for how parent world transforms affect this bone.

getSkinRequired():Bool

When true, {@link Skeleton#updateWorldTransform()} only updates this bone if the {@link Skeleton#getSkin()} contains this bone.

See {@link Skin#getBones()}.

setSkinRequired(skinRequired:Bool):Void

getColor():Color

The color of the bone as it was in Spine, or a default color if nonessential data was not exported. Bones are not usually rendered at runtime.