Skip to content

Commit

Permalink
Re fixed plane not getting added to scene
Browse files Browse the repository at this point in the history
  • Loading branch information
muraliavarma committed May 2, 2013
1 parent 07b1d8b commit a070dcb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions js/Environment.js
Expand Up @@ -4,6 +4,9 @@
elevation: 100,
axis: new THREE.Vector3(1, 0, 0)
}
var plane = new THREE.Mesh(new THREE.PlaneGeometry(100, 100, 1, 1), new THREE.MeshBasicMaterial({color: 0x222222}));
plane.rotation.x = -Math.PI / 2;
scene.add(plane);
};

Environment.prototype = {
Expand Down
3 changes: 0 additions & 3 deletions js/Turtle.js
Expand Up @@ -124,13 +124,10 @@
},
clear: function() {
this.reset();
var plane = new THREE.Mesh(new THREE.PlaneGeometry(100, 100, 1, 1), new THREE.MeshBasicMaterial({color: 0x222222}));
plane.rotation.x = -Math.PI / 2;
while (this._sceneChildren.length > 0) {
var sceneChild = this._sceneChildren.pop();
scene.remove(sceneChild);
}
// scene.add(plane);
},
setPos: function(vec) {
this.pos = vec;
Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Expand Up @@ -22,7 +22,7 @@ function onLoad() {
//sample l systems
var honda = new LSystem({
birth: 0,
maxAge: 5,
maxAge: 10,
env: env,
axiom: 'A(1, 10)',
constants: {
Expand Down

0 comments on commit a070dcb

Please sign in to comment.