-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: 90c9d3b34a45d2ae48cbfd6316dac1a4b8d5c11d:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 90c9d3b34a45d2ae48cbfd6316dac1a4b8d5c11d
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sun Feb 16 10:57:48 2020 -0800

    Pickable particles

diff --git a/scripts/janusparticle.js b/scripts/janusparticle.js

index 7e5f326929a7a94cc5b499e5f005192662a68ebe..

index ..d49b56bc99cec7746a1f84f85f6f7effee23fd7c 100644

--- a/scripts/janusparticle.js
+++ b/scripts/janusparticle.js
@@ -168,6 +168,10 @@ elation.require(['janusweb.janusbase'], function() {
       elation.engine.things.janusparticle.extendclass.createForces.call(this);
       this.properties.particle_vel.copy(this.properties.velocity);
       this.properties.velocity.set(0,0,0); // FIXME - hack to override "vel" property mapping
+      if (!this.collider) {
+        this.collider = new THREE.Points(this.geometry, new THREE.PointsMaterial({color: 0xffff00, opacity: .2, transparent: true, size: this.particle_scale.x + this.rand_scale.x, }));
+        this.colliders.add(this.collider);
+      }
     }
     this.createParticles = function(reset=true) {
       if (reset) {

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

-- Response ended

-- Page fetched on Sun Jun 2 14:55:18 2024