Update Spine support to 4.2

This commit is contained in:
fgnm
2024-04-19 12:45:00 +02:00
parent 088282ff3e
commit 18edca9e43
8 changed files with 10 additions and 9 deletions
@@ -56,7 +56,7 @@ public class SpineDrawable extends BaseDrawable {
}
private void computeBoundBox() {
skeleton.updateWorldTransform();
skeleton.updateWorldTransform(Skeleton.Physics.update);
Array<Slot> drawOrder = skeleton.getDrawOrder();
minX = Float.MAX_VALUE;
@@ -95,7 +95,7 @@ public class SpineDrawable extends BaseDrawable {
@Override
public void draw(Batch batch, float x, float y, float width, float height) {
skeleton.updateWorldTransform();
skeleton.updateWorldTransform(Skeleton.Physics.update);
animationState.update(Gdx.graphics.getDeltaTime());
animationState.apply(skeleton);
skeleton.setPosition(x, y - 20);