Support Spine physics constraints

This commit is contained in:
fgnm
2024-04-20 01:43:31 +02:00
parent 18edca9e43
commit d9e4e8d4e0
3 changed files with 3 additions and 1 deletions
@@ -99,6 +99,7 @@ public class SpineDrawable extends BaseDrawable {
animationState.update(Gdx.graphics.getDeltaTime());
animationState.apply(skeleton);
skeleton.setPosition(x, y - 20);
skeleton.update(Gdx.graphics.getDeltaTime());
Color color = skeleton.getColor();
@@ -133,6 +133,7 @@ public class SpineActor extends Actor {
skeleton.updateWorldTransform(Skeleton.Physics.update); //
state.update(delta);
state.apply(skeleton);
skeleton.update(delta);
super.act(delta);
}
}