repo: janusweb action: commit revision: path_from: revision_from: 7c89c640e8a73c0f619f13e68d1b793e54590656: path_to: revision_to:
commit 7c89c640e8a73c0f619f13e68d1b793e54590656 Author: James BaicoianuDate: Thu Oct 22 14:34:21 2020 -0700 object.raycast() maxdist parameter diff --git a/scripts/janusbase.js b/scripts/janusbase.js
--- 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-----