repo: janusweb action: commit revision: path_from: revision_from: 750cc54a55b0d80618a26ae3724c2c7298f673c3: path_to: revision_to:
commit 750cc54a55b0d80618a26ae3724c2c7298f673c3 Author: James BaicoianuDate: Sun Sep 10 00:08:04 2023 -0700 Teleporter particle improvements diff --git a/media/assets/webui/apps/locomotion/teleporter.js b/media/assets/webui/apps/locomotion/teleporter.js
--- a/media/assets/webui/apps/locomotion/teleporter.js
+++ b/media/assets/webui/apps/locomotion/teleporter.js
@@ -65,9 +65,9 @@ janus.registerElement('locomotion_teleporter', {
rand_pos: V(.5,0,.5),
accel: V(0,-1,0),
rand_accel: V(0,2,0),
- rate: 50,
+ rate: 10,
count: 60,
- duration: .5,
+ duration: 3,
collision_id: '',
collidable: false,
pickable: false,
@@ -337,6 +337,7 @@ janus.registerElement('locomotion_teleporter', {
enableCursor() {
if (!room.teleport) return;
this.visible = true;
+ this.particles.resetParticles();
this.particles.visible = true;
if (this.laser.room !== room._target) room.appendChild(this.laser);
if (this.particles.room !== room._target) room.appendChild(this.particles);
-----END OF PAGE-----