repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 1c6a64ed085f0980f47a3773fdc401611ff643c1:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 1c6a64ed085f0980f47a3773fdc401611ff643c1
Author: James Baicoianu 
Date:   Tue Mar 10 23:39:53 2020 -0700

    Raytracer support for lines and points

diff --git a/scripts/room.js b/scripts/room.js
index 61bac01e7f0ea27add3772bf5b442f2372ce159d..
index ..33a7ecf94209a198d86e8c3f58e349a656ed8d04 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -2152,6 +2152,8 @@ elation.require([
       var _pos = new THREE.Vector3(),
           _dir = new THREE.Vector3(0,0,-1),
           _ray = new THREE.Raycaster();
+      _ray.linePrecision = 3;
+      _ray.params.Points.threshold = 3;
       return function(dir, pos, classname) {
         _ray.set(pos, dir);
         var intersections = _ray.intersectObject(this.colliders, true);

-----END OF PAGE-----