[phaser] Fix control bones example.

This commit is contained in:
Mario Zechner 2023-04-27 17:32:36 +02:00
parent de894957da
commit 9dbada6541
4 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
create() {
const stretchyman = this.add.spine(400, 580, 'stretchyman-data', "stretchyman-atlas");
stretchyman.animationState.setEmptyAnimation(0, true);
stretchyman.animationState.setAnimation(0, "idle", true);
stretchyman.updatePose(0);
const controlBoneNames = ["back-arm-ik-target", "back-leg-ik-target", "front-arm-ik-target", "front-leg-ik-target"];

View File

@ -183,7 +183,7 @@ export class SpineGameObject extends ComputedSizeMixin(DepthMixin(FlipMixin(Scro
preUpdate (time: number, delta: number) {
if (!this.skeleton || !this.animationState) return;
this.updatePose();
this.updatePose(delta);
}
preDestroy () {