repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 5ff6926a3e12fc08a787f028ee1b03fb913007cb:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 5ff6926a3e12fc08a787f028ee1b03fb913007cb
Author: James Baicoianu 
Date:   Sat Dec 4 16:56:57 2021 -0800

    Switch player to use capsule collider

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
index 7c46319c29a4765de0f67dfa91fe8a3789917d27..
index ..e8adec624568a6297c610051d69f45ab3de17964 100644
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -654,7 +654,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
         ghost_id: this.getUsername(),
         avatar_src: 'data:text/plain,' + encodeURIComponent(avatar),
         showlabel: false,
-        pos: V(0, -this.fatness, 0),
+        //pos: V(0, -this.fatness, 0),
         rotation: V(0, 180, 0),
         renderorder: 101,
       });
@@ -841,10 +841,16 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
     this.updateCollider = function() {
       if (this.objects['dynamics']) {
         if (this.collision_radius > 0) {
+/*
           this.setCollider('sphere', {
             radius: this.collision_radius,
-            length: this.height,
-            //offset: V(0, this.collision_radius, 0)
+          });
+*/
+          this.pickable = false;
+          this.setCollider('capsule', {
+            radius: this.collision_radius,
+            length: 1,
+            offset: V(0, this.collision_radius, 0)
           });
         } else {
           this.removeCollider();

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