update method
Implementation
@override
void update() {
final Bone? target = this.target;
final List<Bone> bones = this.bones;
switch (bones.length) {
case 1:
apply1(bones[0], target!.worldX, target.worldY, mix);
break;
case 2:
apply2(bones[0], bones[1], target!.worldX, target.worldY, bendDirection,
mix);
break;
}
}