mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +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 () {
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user