123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- defaultAvatarCostume:
- extends: "proxy/aframe/aentity.vwf"
- properties:
- position: [0, -10, 0]
- visible: false
- methods:
- randomize:
- body: |
- let myColor = this.getRandomColor();
- this.myName.color = myColor;
- this.myBody.material.color = myColor;
- this.myHead.visual.material.color = myColor;
- this.myHead.myCursor.vis.material.color = myColor;
- this.myHead.myCursor.line.color = myColor;
- children:
- myBody:
- extends: "proxy/aframe/abox.vwf"
- properties:
- position: [0, 0.66, 0.7]
- height: 1.3
- width: 0.65
- depth: 0.1
- children:
- material:
- extends: "proxy/aframe/aMaterialComponent.vwf"
- type: "component"
- properties:
- color: "white"
- myName:
- extends: "proxy/aframe/atext.vwf"
- properties:
- color: "white"
- value: "avatar"
- side: "double"
- rotation: [0, 180, 0]
- position: [0.3, 2.05, 0.5]
- myHead:
- extends: "proxy/aframe/aentity.vwf"
- properties:
- position: [0, 1.6, 0.7]
- visible: true
- children:
- interpolation:
- extends: "proxy/aframe/interpolation-component.vwf"
- type: "component"
- properties:
- enabled: true
- visual:
- extends: "proxy/aframe/abox.vwf"
- properties:
- height: 0.5
- width: 0.5
- depth: 0.1
- visible: true
- children:
- material:
- extends: "proxy/aframe/aMaterialComponent.vwf"
- type: "component"
- properties:
- color: "white"
- myCamera:
- extends: "proxy/aframe/acamera.vwf"
- properties:
- position: [0, 0, -0.7]
- look-controls-enabled: false
- wasd-controls-enabled: false
- user-height: 0
- myCursor:
- extends: "proxy/aframe/aentity.vwf"
- children:
- vis:
- extends: "proxy/aframe/abox.vwf"
- properties:
- position: [0, 0, -3]
- height: 0.05
- width: 0.05
- depth: 0.01
- visible: true
- children:
- material:
- extends: "proxy/aframe/aMaterialComponent.vwf"
- type: "component"
- properties:
- color: "white"
- aabb-collider:
- extends: "proxy/aframe/aabb-collider-component.vwf"
- type: "component"
- properties:
- debug: false
- interval: 10
- objects: ".hit"
- line:
- extends: "proxy/aframe/lineComponent.vwf"
- type: "component"
- properties:
- start: "0 0 -1"
- end: "0 0 -3"
- color: "white"
- myRayCaster:
- extends: "proxy/aframe/aentity.vwf"
- children:
- raycaster:
- extends: "proxy/aframe/raycasterComponent.vwf"
- type: "component"
- properties:
- recursive: false
- interval: 100
- far: 3
- objects: ".intersectable"
|