Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 2 bytes modified

beta.r3js.org
-=yb4f310 2017-10-31 13:48:22 +01:00
parent 953c6182a8
commit e60edbc56b
1 changed files with 3 additions and 3 deletions

View File

@ -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 );