Example #1
0
 protected internal virtual void TweenBone(Bone bone1, Bone bone2, Bone target, float t, Curve curve, int spin)
 {
     target.Angle = curve.TweenAngle(bone1.Angle, bone2.Angle, t, spin);
     curve.TweenPoint(bone1.Position, bone2.Position, t, target.Position);
     curve.TweenPoint(bone1.Scale, bone2.Scale, t, target.Scale);
     curve.TweenPoint(bone1.Pivot, bone2.Pivot, t, target.Pivot);
 }
Example #2
0
 protected internal virtual void TweenObject(SpriterObject object1, SpriterObject object2, SpriterObject target, float t, Curve curve, int spin)
 {
     this.TweenBone(object1, object2, target, t, curve, spin);
     target.Alpha = curve.TweenAngle(object1.Alpha, object2.Alpha, t);
     [email protected](object1.@ref);
 }