Skip to content

Commit

Permalink
adds slots
Browse files Browse the repository at this point in the history
  • Loading branch information
sphawes committed Aug 4, 2023
1 parent 9b45a32 commit 8d598f6
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 11 deletions.
Binary file removed asm-old.glb
Binary file not shown.
20 changes: 10 additions & 10 deletions dist/assets/index-95ef30b2.js → dist/assets/index-2599e8de.js

Large diffs are not rendered by default.

Binary file added dist/assets/slots-6940e704.glb
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<script type="module" crossorigin src="./assets/index-95ef30b2.js"></script>
<script type="module" crossorigin src="./assets/index-2599e8de.js"></script>
<link rel="stylesheet" href="./assets/index-3ef4cc58.css">
</head>
<body>
Expand Down
16 changes: 16 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ qty24.oninput = function() {

// importing the path
import assyPath from './asm.glb'
import slotPath from './slots.glb'
import feeder8Path from './feeder.glb'
import feeder12Path from './feeder.glb'
import feeder16Path from './feeder.glb'
Expand All @@ -131,6 +132,21 @@ loader.load( assyPath, function ( gltf )
}
);

//load slots
loader.load( slotPath, function ( gltf )
{
var part = gltf.scene;
//part.scale.set(.1, .1, .1);
part.position.y = 0; //-3
part.position.x = -20; //-20
part.rotation.x = -1.5708;

scene.add( part );
}, undefined, function ( error ) {
console.error( error );
}
);

camera.position.z = 50;

window.removeObject = function(object){
Expand Down
Binary file added slots.glb
Binary file not shown.

0 comments on commit 8d598f6

Please sign in to comment.