repo: janusweb
action: commit
revision: 
path_from: 
revision_from: eea3d45a2518eab0013215ccda9940531dcfa8a2:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit eea3d45a2518eab0013215ccda9940531dcfa8a2
Author: James Baicoianu 
Date:   Thu Oct 22 23:03:27 2020 -0700

    raycast maxdist argument

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
index 09145a70f7bc0534fa9deb756a78ca24219637c7..
index ..c43f9b722ec30ab97e11c869f9b1dc6e92889018 100644
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -811,7 +811,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
     this.raycast = (function() {
       var _pos = new THREE.Vector3(),
           _dir = new THREE.Vector3(0,0,-1);
-      return function(dir, offset, classname) {
+      return function(dir, offset, classname, maxdist) {
         if (!this.room) return [];
         if (dir) {
           _dir.copy(dir);
@@ -824,7 +824,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
         }
         this.head.localToWorld(_pos);
         this.head.objects.dynamics.localToWorldDir(_dir);
-        return this.room.raycast(_dir, _pos, classname);
+        return this.room.raycast(_dir, _pos, classname, maxdist);
       };
     })();
     this.cancelGaze = function() {

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