repo: janusweb
action: commit
revision: 
path_from: 
revision_from: efeb9d080d2a6704f34335c622aa55e4ca8f9cf7:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit efeb9d080d2a6704f34335c622aa55e4ca8f9cf7
Author: James Baicoianu 
Date:   Tue Oct 31 06:12:06 2017 -0700

    Added player.removeCollider()

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
index c7142fcafd2f382359c64622460d8d09d3b4ce62..
index ..a7738dc97110598f660e04390f4b80e7300e2585 100644
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -644,6 +644,14 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
         }
       }
     }
+    this.removeCollider = function() {
+      if (this.colliders) {
+        for (var i = 0; i < this.colliders.children.length; i++) {
+          var collider = this.colliders.children[i];
+          collider.parent.remove(collider);
+        }
+      }
+    }
     this.raycast = (function() {
       var _pos = new THREE.Vector3(),
           _dir = new THREE.Vector3(0,0,-1);

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