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

small changes

parent 1ead5228
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@
GIKCell.prototype.setSuperCell = function(superCell, index){
this.superCell = superCell;
this.superCellIndex = index;
console.log(this.indices);
CubeCell.call(this, this.indices);
if (this.superCellIndex == this.superCell.getLength()) this.object3D.rotateZ(Math.PI);
return this.object3D;
......@@ -53,9 +52,7 @@
};
GIKCell.prototype.calcHighlighterPosition = function(face){
// var params = CubeCell.prototype.calcHighlighterPosition.call();
var direction = face.normal.clone().applyEuler(this.object3D.rotation).applyEuler(this.superCell.object3D.rotation);
var direction = face.normal.clone().applyEuler(this.object3D.rotation).applyEuler(this.object3D.parent.rotation);
var position = globals.lattice.getPositionForIndex(this.indices);
var self = this;
_.each(_.keys(position), function(key){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment