todd
This is the standard sequence of calls that occur during a frame update in spine-pixi-v8
. Below is the same function, but with the invocations that are not relevant at the moment removed:
private _updateAndApplyState(time: number) {
this.state.update(time);
this.skeleton.update(time);
this.state.apply(this.skeleton);
this.beforeUpdateWorldTransforms(this);
this.skeleton.updateWorldTransform(Physics.update);
this.afterUpdateWorldTransforms(this);
}
As you can see, there are also beforeUpdateWorldTransforms
and afterUpdateWorldTransforms
, which allow you to inject custom logic before updateWorldTransform
is invoked.
If you need further assistance, it would be helpful if you could share a clip and the code you are currently using, or, more generally, a minimal reproduction project.