MCPcopy Create free account
hub / github.com/melonjs/melonJS / setToSetupPose

Method setToSetupPose

packages/spine-plugin/src/Spine.js:735–745  ·  view source on GitHub ↗

* Reset this skeleton to the setup pose.

()

Source from the content-addressed store, hash-verified

733 * Reset this skeleton to the setup pose.
734 */
735 setToSetupPose() {
736 this.skeleton.setupPose();
737 this.skeleton.updateWorldTransform(Physics.reset);
738 // reset flip flags
739 this.isSpineFlipped.y = false;
740 this.isSpineFlipped.x = false;
741 // reset reference to current track entry
742 this.currentTrack = undefined;
743 // mark the object as dirty
744 this.isDirty = true;
745 }
746}

Callers 1

setSkeletonMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected