repo: janusweb action: commit revision: path_from: revision_from: 5ff6926a3e12fc08a787f028ee1b03fb913007cb: path_to: revision_to:
commit 5ff6926a3e12fc08a787f028ee1b03fb913007cb Author: James BaicoianuDate: Sat Dec 4 16:56:57 2021 -0800 Switch player to use capsule collider diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
--- 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-----