Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 3 bytes modified
parent
87c8206606
commit
c276135bde
|
@ -115,6 +115,7 @@ if (
|
||||||
velocity = {x:0,y:0,z:1};
|
velocity = {x:0,y:0,z:1};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
enemy.mesh.position.x = position.x;
|
enemy.mesh.position.x = position.x;
|
||||||
enemy.mesh.position.y = position.y;
|
enemy.mesh.position.y = position.y;
|
||||||
enemy.mesh.position.z = position.z;
|
enemy.mesh.position.z = position.z;
|
||||||
|
@ -145,21 +146,17 @@ if (this.spawningBullets === true) {
|
||||||
linewidth: 5
|
linewidth: 5
|
||||||
});
|
});
|
||||||
|
|
||||||
var position = this.camera.lookAt.instance.clone();
|
var position = this.camera.position.instance.clone();
|
||||||
var origin = 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();
|
var geometry = new THREE.Geometry();
|
||||||
geometry.vertices.push(
|
geometry.vertices.push(
|
||||||
new THREE.Vector3(
|
position,
|
||||||
this.camera.position.x,
|
lookAt
|
||||||
this.camera.position.y,
|
|
||||||
0
|
|
||||||
),
|
|
||||||
position
|
|
||||||
);
|
);
|
||||||
|
|
||||||
var line = new THREE.Line( geometry, material );
|
var line = new THREE.Line( geometry, material );
|
||||||
|
|
Loading…
Reference in New Issue