repo: janusweb
action: commit
revision: 
path_from: 
revision_from: b359e2bd5c037b9a83cad9e25894165fc2adc1ea:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit b359e2bd5c037b9a83cad9e25894165fc2adc1ea
Author: James Baicoianu 
Date:   Fri Nov 3 11:58:16 2017 -0700

    Pass janus and room object references to child objects

diff --git a/scripts/remoteplayer.js b/scripts/remoteplayer.js
index 97789ad9f60ae2483d144d026ce753e71c008d22..
index ..b1acc4cdfaaabd702e1aa53de90ba3a38f7bc818 100644
--- a/scripts/remoteplayer.js
+++ b/scripts/remoteplayer.js
@@ -25,18 +25,26 @@ elation.component.add('engine.things.remoteplayer', function() {
     this.torso = this.spawn('janusbase', this.properties.player_name + '_torso', {
       'position': [0,1,0],
       'parent': this,
+      'janus': this.janus,
+      'room': this.room
     });
     this.shoulders = this.torso.spawn('janusbase', this.properties.player_id + '_shoulders', {
       'position': [0,0.6,-0.0],
       'parent': this,
+      'janus': this.janus,
+      'room': this.room
     });
     this.neck = this.torso.spawn('janusbase', this.properties.player_name + '_neck', {
       'position': [0,0.4,0],
       'parent': this,
+      'janus': this.janus,
+      'room': this.room
     });
     this.head = this.spawn('janusbase', this.properties.player_name + '_head', {
       'position': [0,1.4,0],
       'parent': this,
+      'janus': this.janus,
+      'room': this.room
     });
 /*
     this.face = this.head.spawn('maskgenerator', this.properties.player_name + '_mask', {

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