diff --git a/dywmtohrda.js b/dywmtohrda.js index 8325b4c..cd882cc 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -160,7 +160,7 @@ if (this.spawningBullets === true) { var direction = lookAt.sub(position).normalize(); - var start = new THREE.Vector3(1,0,0.5); + var start = new THREE.Vector3(0,0,0.5); start.unproject(this.camera.instance); var end = direction.clone().multiplyScalar(1000); @@ -180,15 +180,15 @@ if (this.spawningBullets === true) { direction: direction }); - var geometry = new THREE.Geometry(); - geometry.vertices.push( - start, - end - ); + //var geometry = new THREE.Geometry(); + //geometry.vertices.push( + // start, + // end + //); - var line = new THREE.Line( geometry, material ); + //var line = new THREE.Line( geometry, material ); - this.scene.instance.add( line ); + //this.scene.instance.add( line ); var raycaster = new THREE.Raycaster();