repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 7c89c640e8a73c0f619f13e68d1b793e54590656:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 7c89c640e8a73c0f619f13e68d1b793e54590656
Author: James Baicoianu 
Date:   Thu Oct 22 14:34:21 2020 -0700

    object.raycast() maxdist parameter

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index f0ac272c06d88fe97a99ea705434babd6c3ceda5..
index ..ec2ac734d497e81730e303822aa549b3d9c902b4 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -1092,7 +1092,7 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
     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);
@@ -1105,7 +1105,7 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
         }
         this.localToWorld(_pos);
         this.objects.dynamics.localToWorldDir(_dir);
-        return this.room.raycast(_dir, _pos, classname);
+        return this.room.raycast(_dir, _pos, classname, maxdist);
       };
     })();
     this.getElementsByTagName = function(tagname, elements) {

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