From c276135bdea1469f7aa121eb2184e6154fc9b567 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 31 Oct 2017 13:12:35 +0100 Subject: [PATCH] Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 3 bytes modified --- dywmtohrda.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/dywmtohrda.js b/dywmtohrda.js index 79001e2..5aed611 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -115,6 +115,7 @@ if ( velocity = {x:0,y:0,z:1}; } + enemy.mesh.position.x = position.x; enemy.mesh.position.y = position.y; enemy.mesh.position.z = position.z; @@ -145,21 +146,17 @@ if (this.spawningBullets === true) { linewidth: 5 }); - var position = this.camera.lookAt.instance.clone(); - var origin = this.camera.position.instance.clone(); + 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( - this.camera.position.x, - this.camera.position.y, - 0 - ), - position + position, + lookAt ); var line = new THREE.Line( geometry, material );