diff --git a/spine-ts/spine-player/example/physics.html b/spine-ts/spine-player/example/physics.html new file mode 100644 index 000000000..fbe16c5cd --- /dev/null +++ b/spine-ts/spine-player/example/physics.html @@ -0,0 +1,39 @@ + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/spine-ts/spine-player/src/Player.ts b/spine-ts/spine-player/src/Player.ts index 166c048c5..8de7eecb8 100644 --- a/spine-ts/spine-player/src/Player.ts +++ b/spine-ts/spine-player/src/Player.ts @@ -373,6 +373,7 @@ export class SpinePlayer implements Disposable { let time = animationDuration * percentage; this.animationState!.update(time - this.playTime); this.animationState!.apply(this.skeleton!); + this.skeleton!.update(time - this.playTime); this.skeleton!.updateWorldTransform(Physics.update); this.playTime = time; };