Support Spine physics constraints
This commit is contained in:
Submodule h2d-libgdx-spine-extension updated: 6d595db323...3c6d15868a
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user