Optimised Ray a bit more

Removed some clone() calls while still keeping the code somewhat pretty.
This commit is contained in:
Mr.doob
2011-10-29 10:30:08 +02:00
parent ca38a3ff1c
commit dad6911bb0
7 changed files with 755 additions and 755 deletions
+1 -1
View File
@@ -130,7 +130,7 @@
// find intersections
var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
var vector = new THREE.Vector3( mouse.x, mouse.y, 1 );
projector.unprojectVector( vector, camera );
var ray = new THREE.Ray( camera.position, vector.subSelf( camera.position ).normalize() );