Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 30 bytes modified
parent
4d4c2eae65
commit
e647277ef1
|
@ -149,7 +149,7 @@ if (this.spawningBullets === true) {
|
|||
var position = this.camera.position.instance.clone();
|
||||
var lookAt = this.camera.lookAt.instance.clone();
|
||||
|
||||
//var direction = position.sub(lookAt);
|
||||
var direction = position.sub(lookAt).normalize();
|
||||
|
||||
|
||||
console.log(lookAt);
|
||||
|
@ -160,8 +160,8 @@ if (this.spawningBullets === true) {
|
|||
|
||||
var geometry = new THREE.Geometry();
|
||||
geometry.vertices.push(
|
||||
position,
|
||||
lookAt
|
||||
direction,
|
||||
direction.addScalar(500);
|
||||
);
|
||||
|
||||
var line = new THREE.Line( geometry, material );
|
||||
|
|
Loading…
Reference in New Issue