Skip to content

Commit

Permalink
fix shield model and rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
bailey committed Mar 3, 2024
1 parent fb72265 commit 0d481d4
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 4 deletions.
Binary file added assets/.DS_Store
Binary file not shown.
142 changes: 142 additions & 0 deletions assets/models/ganon.gltf

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/models/ganon2.gltf

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@

// load model
const shieldloader = new GLTFLoader();
shieldloader.load('assets/models/ganonisabitch.gltf', function (gltf) {
gltf.scene.position.set(5, 2.2, 5.5); // Adjust position to be on top of the column
// gltf.scene.rotation.x += 1.5;
shieldloader.load('assets/models/ganon.gltf', function (gltf) {
gltf.scene.position.set(5, 2.2, 5); // Adjust position to be on top of the column
gltf.scene.rotation.x += 4.75;
gltf.scene.scale.set(.5, .5, .5);
scene.add(gltf.scene);
shieldModel = gltf.scene;
Expand Down Expand Up @@ -363,7 +363,7 @@
prevTime = time;

if (bowieModel) bowieModel.rotation.z += 0.01;
if (shieldModel) shieldModel.rotation.y += 0.01;
if (shieldModel) shieldModel.rotation.z += 0.01;
if (pusheenModel) pusheenModel.rotation.y += 0.01;
if (froggyModel) froggyModel.rotation.y += 0.01;
render();
Expand Down

0 comments on commit 0d481d4

Please sign in to comment.