repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 750cc54a55b0d80618a26ae3724c2c7298f673c3:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 750cc54a55b0d80618a26ae3724c2c7298f673c3
Author: James Baicoianu 
Date:   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
index e0621a44da73a194dbf6db91f78e4aeedfc909cd..
index ..156679f75f329cc9db695a510db8649ee2a2de0f 100644
--- 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-----