repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 9bcacdeb8c25c00819b11a094faa7189a3a67942:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 9bcacdeb8c25c00819b11a094faa7189a3a67942
Author: James Baicoianu 
Date:   Sat Mar 30 02:21:33 2019 -0700

    Added default trigger collider volume

diff --git a/scripts/januslight.js b/scripts/januslight.js
index 3f89673d5e64262fd4afe4cdf57344efa3debec0..
index ..038b5b474faaf76856131b88979b31a31f8ce19e 100644
--- a/scripts/januslight.js
+++ b/scripts/januslight.js
@@ -15,6 +15,8 @@ elation.require(['janusweb.janusbase'], function() {
         light_shadow_bias: { type: 'float', default: .0001, set: this.updateLight },
         light_shadow_radius: { type: 'float', default: 2.5, set: this.updateLight },
         light_helper: { type: 'boolean', default: false, set: this.updateLightHelper },
+        collision_id: { type: 'string', default: 'sphere', set: this.updateCollider },
+        collision_trigger: { type: 'boolean', default: true, set: this.updateCollider },
       });
     }
     this.createObject3D = function() {
@@ -103,7 +105,8 @@ elation.require(['janusweb.janusbase'], function() {
       if (this.light_target) {
         if (elation.utils.isString(this.light_target)) {
           if (room.objects[this.light_target]) {
-            this.light.target = room.objects[this.light_target].objects['3d'];
+            let obj = room.objects[this.light_target];
+            this.light.target = obj.objects['3d'];
           } else if (this.light_target == 'player') {
             this.light.target = player.objects['3d'];
           }

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