Clean up.

This commit is contained in:
NathanSweet 2016-04-19 20:51:52 +02:00
parent 2d03ac50a6
commit e74b61e775

View File

@ -38,9 +38,9 @@ public class TransformConstraint implements Updatable {
public void update () {
float translateMix = this.translateMix;
if (translateMix > 0) {
Bone bone = this.bone;
Vector2 temp = this.temp;
target.localToWorld(temp.set(x, y));
Bone bone = this.bone;
bone.worldX += (temp.x - bone.worldX) * translateMix;
bone.worldY += (temp.y - bone.worldY) * translateMix;
}