apply static method

void apply(
  1. Skeleton skeleton,
  2. BonePose bone,
  3. double targetX,
  4. double targetY,
  5. bool compress,
  6. bool stretch,
  7. bool uniform,
  8. double mix,
)

Adjusts the bone rotation so the tip is as close to the target position as possible. The target is specified in the world coordinate system.

Implementation

static void apply(Skeleton skeleton, BonePose bone, double targetX, double targetY, bool compress, bool stretch,
    bool uniform, double mix) {
  SpineBindings.bindings.spine_ik_constraint_apply_1(
      skeleton.nativePtr.cast(), bone.nativePtr.cast(), targetX, targetY, compress, stretch, uniform, mix);
}