mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Clean up.
This commit is contained in:
parent
2d03ac50a6
commit
e74b61e775
@ -38,9 +38,9 @@ public class TransformConstraint implements Updatable {
|
|||||||
public void update () {
|
public void update () {
|
||||||
float translateMix = this.translateMix;
|
float translateMix = this.translateMix;
|
||||||
if (translateMix > 0) {
|
if (translateMix > 0) {
|
||||||
Bone bone = this.bone;
|
|
||||||
Vector2 temp = this.temp;
|
Vector2 temp = this.temp;
|
||||||
target.localToWorld(temp.set(x, y));
|
target.localToWorld(temp.set(x, y));
|
||||||
|
Bone bone = this.bone;
|
||||||
bone.worldX += (temp.x - bone.worldX) * translateMix;
|
bone.worldX += (temp.x - bone.worldX) * translateMix;
|
||||||
bone.worldY += (temp.y - bone.worldY) * translateMix;
|
bone.worldY += (temp.y - bone.worldY) * translateMix;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user