Skip to content

Commit

Permalink
[ts][threejs] Fixed physics example.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetan committed Jul 2, 2024
1 parent 1f2cffe commit 71b4f0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spine-ts/spine-threejs/example/physics.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
let skeletonFile = "celestial-circus-pro.json";
let atlasFile = `celestial-circus${pma ? "-pma" : ""}.atlas`;

let animation = "eyeblink-long";

function init() {
// create the THREE.JS camera, scene and renderer (WebGL)
let width = window.innerWidth,
Expand Down Expand Up @@ -99,8 +97,8 @@
parameters.alphaTest = 0.001;
}
);
skeletonMesh.state.setAnimation(0, animation, true);
skeletonMesh.state.setAnimation(1, "swing", true);
skeletonMesh.state.setAnimation(0, "swing", true);
skeletonMesh.state.setAnimation(1, "eyeblink-long", true);
mesh.add(skeletonMesh);

skeletonMesh.position.y = -300;
Expand Down

0 comments on commit 71b4f0f

Please sign in to comment.