repo: janusweb
action: commit
revision: 
path_from: 
revision_from: c153243af48d58e3b44738e97d781e323725b90f:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit c153243af48d58e3b44738e97d781e323725b90f
Author: James Baicoianu 
Date:   Thu May 9 11:54:28 2019 -0700

    Billboarded label for remote player userids

diff --git a/scripts/remoteplayer.js b/scripts/remoteplayer.js
index 547e32a63a7d0274a54691a4d4ede858822becdb..
index ..a7484dd23a05ed93e992f603dd5ec8a2660f5428 100644
--- a/scripts/remoteplayer.js
+++ b/scripts/remoteplayer.js
@@ -58,15 +58,17 @@ elation.component.add('engine.things.remoteplayer', function() {
       collidable: false
     });
 */
-    this.label = this.head.spawn('label', this.player_name + '_label', {
+    this.label = this.createObject('text', {
       size: .1,
+      thickness: .002,
       align: 'center',
       collidable: false,
       text: this.player_name,
-      position: [0,.5,0],
+      position: [0,2,0],
       orientation: [0,1,0,0],
       pickable: false,
-      collidable: false
+      collidable: false,
+      billboard: 'y'
     });
     this.mouth = this.head.spawn('sound', this.properties.player_name + '_voice', {
       //loop: true

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