TransformConstraintTimeline

TimelineCurveTimelinespine.TransformConstraintTimeline (Class)

Changes a transform constraint's {@link TransformConstraint#getMixRotate()}, {@link TransformConstraint#getMixX()}, {@link TransformConstraint#getMixY()}, {@link TransformConstraint#getMixScaleX()}, {@link TransformConstraint#getMixScaleY()}, and {@link TransformConstraint#getMixShearY()}.

Static Members

spine
ENTRIES: Int

spine
LINEAR: Int

spine
STEPPED: Int

spine
BEZIER: Int

spine
BEZIER_SIZE: Int

Instance Members

spine
transformConstraintIndex: Int

spine
getFrameEntries(): Int
Returns
Int

spine
getTransformConstraintIndex(): Int

The index of the transform constraint slot in {@link Skeleton#getTransformConstraints()} that will be changed when this timeline is applied.

Returns
Int

spine
setFrame(frame: Int, time: Float, mixRotate: Float, mixX: Float, mixY: Float, mixScaleX: Float, mixScaleY: Float, mixShearY: Float): Void

Sets the time, rotate mix, translate mix, scale mix, and shear mix for the specified frame.

Name Type Description
frame Int Between 0 and frameCount, inclusive.
time Float The frame time in seconds.
mixRotate Float
mixX Float
mixY Float
mixScaleX Float
mixScaleY Float
mixShearY Float

spine
apply(skeleton: Skeleton, lastTime: Float, time: Float, events: spine.support.utils.Array<Event>, alpha: Float, blend: MixBlend, direction: MixDirection): Void
Name Type
skeleton Skeleton
lastTime Float
time Float
events spine.support.utils.Array<Event>
alpha Float
blend MixBlend
direction MixDirection

spine
new(frameCount: Int, bezierCount: Int, transformConstraintIndex: Int): Void
Name Type
frameCount Int
bezierCount Int
transformConstraintIndex Int

Private Members

spine
ROTATE: Int

spine
X: Int

spine
Y: Int

spine
SCALEX: Int

spine
SCALEY: Int

spine
SHEARY: Int