mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Optimised Ray a bit more
Removed some clone() calls while still keeping the code somewhat pretty.
This commit is contained in:
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user