IkConstraintTimeline
Timeline → CurveTimeline → spine.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
Instance Members
Returns |
---|
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 |
Name | Type |
---|---|
frameCount |
Int |
bezierCount |
Int |
ikConstraintIndex |
Int |