Jelajahi Sumber

correct avatar

Nikolay Suslov 7 tahun lalu
induk
melakukan
913f4fe30e
1 mengubah file dengan 25 tambahan dan 13 penghapusan
  1. 25 13
      support/proxy/vwf.example.com/aframe/avatar.js

+ 25 - 13
support/proxy/vwf.example.com/aframe/avatar.js

@@ -2,7 +2,7 @@ this.simpleBodyDef = {
     "extends": "http://vwf.example.com/aframe/abox.vwf",
     "properties": {
         "color": "white",
-        "position": "0 0.66 0.5",
+        "position": "0 0.66 0",
         "height": 1.3,
         "width": 0.65,
         "depth": 0.1,
@@ -52,20 +52,10 @@ this.createAvatarBody = function (modelSrc) {
             "myHead": {
                 "extends": "http://vwf.example.com/aframe/aentity.vwf",
                 "properties": {
-                    "position": "0 1.6 0.5",
+                    "position": "0 1.6 0",
                     "visible": true
                 },
                 children: {
-                    "visual": {
-                        "extends": "http://vwf.example.com/aframe/abox.vwf",
-                        "properties": {
-                            "color": myColor,
-                            "height": 0.5,
-                            "width": 0.5,
-                            "depth": 0.1,
-                            "visible": true
-                        }
-                    },
                     "interpolation":
                     {
                         "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
@@ -77,12 +67,23 @@ this.createAvatarBody = function (modelSrc) {
                             "deltaRot": 0
                         }
                     },
+                    "visual": {
+                        "extends": "http://vwf.example.com/aframe/abox.vwf",
+                        "properties": {
+                            "color": myColor,
+                            "height": 0.5,
+                            "width": 0.5,
+                            "depth": 0.1,
+                            "visible": true
+                        }
+                    },
+                    
                     "myCamera":
                     {
                         "id": 'camera-' + this.id,
                         "extends": "http://vwf.example.com/aframe/acamera.vwf",
                         "properties": {
-                            "position": "0 0 -0.5",
+                            "position": "0 0 0",
                             "look-controls-enabled": false,
                             "wasd-controls": false,
                             "userHeight": 0,
@@ -94,6 +95,17 @@ this.createAvatarBody = function (modelSrc) {
                         "extends": "http://vwf.example.com/aframe/aentity.vwf",
                         "properties": {},
                         "children": {
+                            "vis": {
+                                "extends": "http://vwf.example.com/aframe/abox.vwf",
+                                "properties": {
+                                    "color": myColor,
+                                    "position": "0 0 -3",
+                                    "height": 0.05,
+                                    "width": 0.05,
+                                    "depth": 0.01,
+                                    "visible": true
+                                }
+                            },
                             "line": {
                                 "extends": "http://vwf.example.com/aframe/lineComponent.vwf",
                                 "type": "component",