Skip to content

Commit

Permalink
refactor(examples): replace Y+ option with rotateX
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn0326 committed Jul 12, 2024
1 parent f2017a4 commit 01d3b07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,17 @@
}
});

const params = { 'Y+': false };
const params = { 'rotateX': 0 };
const gui = new GUI();
gui.add(params, 'Y+');
gui.add(params, 'rotateX', [-90, 0, 90]);

function loop(count) {
requestAnimationFrame(loop);

controller.update();

if (mesh) {
mesh.euler.x = params['Y+'] ? -Math.PI / 2 : 0;
mesh.euler.x = params.rotateX / 180 * Math.PI;
mesh.update(camera, width, height);
}

Expand Down

0 comments on commit 01d3b07

Please sign in to comment.