Skip to content
Snippets Groups Projects
Commit e7b07c51 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

larger menu

parent 53a3d493
Branches
No related tags found
No related merge requests found
......@@ -82,13 +82,13 @@ nav .btn {
/*menus*/
#menuWrapper {
width: 420px;
width: 430px;
height: 100%;
z-index: 1;
position: absolute;
display: block;
background-color: rgba(255,255,255,0.8);
right: -420px;/*initially hidden*/
right: -430px;/*initially hidden*/
overflow:hidden;
}
......
......@@ -30,7 +30,7 @@ OneBitBot.prototype._buildMeshes = function(callback){
}
function geometryScale(geometry){
var unitScale = 0.05/2.78388;
geometry.applyMatrix(new THREE.Matrix4().makeTranslation(-200,-283.84,0));
geometry.applyMatrix(new THREE.Matrix4().makeTranslation(-200,-283.84,30));
geometry.applyMatrix(new THREE.Matrix4().makeScale(unitScale, unitScale, unitScale));
return geometry;
}
......@@ -41,11 +41,11 @@ OneBitBot.prototype._buildMeshes = function(callback){
}
var loader = new THREE.STLLoader();
loader.load("assets/stls/oneBitBot/zAxis.stl", function(geometry){
geometry.applyMatrix(new THREE.Matrix4().makeTranslation(100,-20.16,-55.37));
geometry.applyMatrix(new THREE.Matrix4().makeTranslation(100,-20.16,-85.37));
meshPrep(geometryScale(geometry), "zAxis");
});
loader.load("assets/stls/oneBitBot/zDrive.stl", function(geometry){
geometry.applyMatrix(new THREE.Matrix4().makeTranslation(100,-20.16,0));
geometry.applyMatrix(new THREE.Matrix4().makeTranslation(100,-20.16,-0));
meshPrep(geometryScale(geometry), "zDrive");
});
loader.load("assets/stls/oneBitBot/yAxisMount.stl", function(geometry){
......
......@@ -111,7 +111,7 @@ MenuWrapper = Backbone.View.extend({
},
_hide: function(callback, suppressModelUpdate){
this.$el.parent().animate({right: "-420"}, {done: callback});
this.$el.parent().animate({right: "-430"}, {done: callback});
if (!suppressModelUpdate) this.model.set("menuIsVisible", false);
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment