Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 2 bytes modified
parent
953c6182a8
commit
e60edbc56b
|
@ -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.subtract(lookAt);
|
||||
var direction = position.sub(lookAt);
|
||||
|
||||
|
||||
|
||||
|
@ -160,8 +160,8 @@ if (this.spawningBullets === true) {
|
|||
|
||||
var geometry = new THREE.Geometry();
|
||||
geometry.vertices.push(
|
||||
direction.add(200),
|
||||
direction.subtract(200)
|
||||
direction.addScalar(200),
|
||||
direction.subScalar(200)
|
||||
);
|
||||
|
||||
var line = new THREE.Line( geometry, material );
|
||||
|
|
Loading…
Reference in New Issue