repo: janusweb action: commit revision: path_from: revision_from: eea3d45a2518eab0013215ccda9940531dcfa8a2: path_to: revision_to:
commit eea3d45a2518eab0013215ccda9940531dcfa8a2 Author: James BaicoianuDate: Thu Oct 22 23:03:27 2020 -0700 raycast maxdist argument diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
--- 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-----