defaultAvatarCostume.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. defaultAvatarCostume:
  2. extends: "proxy/aframe/aentity.vwf"
  3. properties:
  4. position: [0, -10, 0]
  5. visible: false
  6. methods:
  7. randomize:
  8. body: |
  9. let myColor = this.getRandomColor();
  10. this.myName.color = myColor;
  11. this.myBody.material.color = myColor;
  12. this.myHead.visual.material.color = myColor;
  13. this.myHead.myCursor.vis.material.color = myColor;
  14. this.myHead.myCursor.line.color = myColor;
  15. children:
  16. myBody:
  17. extends: "proxy/aframe/abox.vwf"
  18. properties:
  19. position: [0, 0.66, 0.7]
  20. height: 1.3
  21. width: 0.65
  22. depth: 0.1
  23. children:
  24. material:
  25. extends: "proxy/aframe/aMaterialComponent.vwf"
  26. type: "component"
  27. properties:
  28. color: "white"
  29. myName:
  30. extends: "proxy/aframe/atext.vwf"
  31. properties:
  32. color: "white"
  33. value: "avatar"
  34. side: "double"
  35. rotation: [0, 180, 0]
  36. position: [0.3, 2.05, 0.5]
  37. myHead:
  38. extends: "proxy/aframe/aentity.vwf"
  39. properties:
  40. position: [0, 1.6, 0.7]
  41. visible: true
  42. children:
  43. interpolation:
  44. extends: "proxy/aframe/interpolation-component.vwf"
  45. type: "component"
  46. properties:
  47. enabled: true
  48. visual:
  49. extends: "proxy/aframe/abox.vwf"
  50. properties:
  51. height: 0.5
  52. width: 0.5
  53. depth: 0.1
  54. visible: true
  55. children:
  56. material:
  57. extends: "proxy/aframe/aMaterialComponent.vwf"
  58. type: "component"
  59. properties:
  60. color: "white"
  61. myCamera:
  62. extends: "proxy/aframe/acamera.vwf"
  63. properties:
  64. position: [0, 0, -0.7]
  65. look-controls-enabled: false
  66. wasd-controls-enabled: false
  67. user-height: 0
  68. myCursor:
  69. extends: "proxy/aframe/aentity.vwf"
  70. children:
  71. vis:
  72. extends: "proxy/aframe/abox.vwf"
  73. properties:
  74. position: [0, 0, -3]
  75. height: 0.05
  76. width: 0.05
  77. depth: 0.01
  78. visible: true
  79. children:
  80. material:
  81. extends: "proxy/aframe/aMaterialComponent.vwf"
  82. type: "component"
  83. properties:
  84. color: "white"
  85. aabb-collider:
  86. extends: "proxy/aframe/aabb-collider-component.vwf"
  87. type: "component"
  88. properties:
  89. debug: false
  90. interval: 10
  91. objects: ".hit"
  92. line:
  93. extends: "proxy/aframe/lineComponent.vwf"
  94. type: "component"
  95. properties:
  96. start: "0 0 -1"
  97. end: "0 0 -3"
  98. color: "white"
  99. myRayCaster:
  100. extends: "proxy/aframe/aentity.vwf"
  101. children:
  102. raycaster:
  103. extends: "proxy/aframe/raycasterComponent.vwf"
  104. type: "component"
  105. properties:
  106. recursive: false
  107. interval: 100
  108. far: 3
  109. objects: ".intersectable"