diff --git a/dywmtohrda.js b/dywmtohrda.js index 0ff4adc..5444011 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -149,14 +149,14 @@ if (this.spawningBullets === true) { var position = this.camera.position.instance.clone(); var lookAt = this.camera.lookAt.instance.clone(); - // var mInverse = new THREE.Matrix4().getInverse( this.sceneCrosshair.instance.matrixWorld ); + var mInverse = new THREE.Matrix4().getInverse( this.sceneCrosshair.instance.matrixWorld ); - // position.applyMatrix4( mInverse ); + position.applyMatrix4( mInverse ); var geometry = new THREE.Geometry(); geometry.vertices.push( new THREE.Vector3( - 0, + position.x, position.y, position.z ),