IkConstraintTimeline

TimelineCurveTimelinespine.IkConstraintTimeline (Class)

Changes an IK constraint's {@link IkConstraint#getMix()}, {@link IkConstraint#getSoftness()}, {@link IkConstraint#getBendDirection()}, {@link IkConstraint#getStretch()}, and {@link IkConstraint#getCompress()}.

Static Members

spine
ENTRIES: Int

spine
LINEAR: Int

spine
STEPPED: Int

spine
BEZIER: Int

spine
BEZIER_SIZE: Int

Instance Members

spine
ikConstraintIndex: Int

spine
getFrameEntries(): Int
Returns
Int

spine
getIkConstraintIndex(): Int

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

Returns
Int

spine
setFrame(frame: Int, time: Float, mix: Float, softness: Float, bendDirection: Int, compress: Bool, stretch: Bool): Void

Sets the time, mix, softness, bend direction, compress, and stretch for the specified frame.

Name Type Description
frame Int Between 0 and frameCount, inclusive.
time Float The frame time in seconds.
mix Float
softness Float
bendDirection Int 1 or -1.
compress Bool
stretch Bool

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, ikConstraintIndex: Int): Void
Name Type
frameCount Int
bezierCount Int
ikConstraintIndex Int

Private Members

spine
MIX: Int

spine
SOFTNESS: Int

spine
BEND_DIRECTION: Int

spine
COMPRESS: Int

spine
STRETCH: Int