From 953c6182a8219f8b0dc8b40816a12c39467c604c Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 31 Oct 2017 13:46:34 +0100 Subject: [PATCH] Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 21 bytes modified --- dywmtohrda.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dywmtohrda.js b/dywmtohrda.js index 11a2e1a..7164061 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -149,18 +149,19 @@ 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 direction = position.subtract(lookAt); - position.applyMatrix4( mInverse ); + + + + //var mInverse = new THREE.Matrix4().getInverse( this.sceneCrosshair.instance.matrixWorld ); + + //position.applyMatrix4( mInverse ); var geometry = new THREE.Geometry(); geometry.vertices.push( - new THREE.Vector3( - position.x + 10, - position.y, - position.z - ), - lookAt + direction.add(200), + direction.subtract(200) ); var line = new THREE.Line( geometry, material );