aentity.vwf.yaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # https://aframe.io/docs/0.5.0/core/entity.html
  2. ---
  3. extends: http://vwf.example.com/aframe/node.vwf
  4. type: "a-entity"
  5. implements:
  6. - http://vwf.example.com/animation/animation.vwf
  7. - http://vwf.example.com/animation/animationNode.vwf
  8. properties:
  9. position:
  10. set: |
  11. var position = this.translationFromValue( value ); // parse incoming value
  12. if(!position || !this.position){
  13. this.position = goog.vec.Vec3.create();
  14. } else if ( ! goog.vec.Vec3.equals( this.position || goog.vec.Vec3.create(), position ) ) {
  15. this.position = position;
  16. this.positionChanged( position);
  17. }
  18. get: |
  19. return this.position || goog.vec.Vec3.create();
  20. rotation:
  21. set: |
  22. var rotation = this.translationFromValue( value ); // parse incoming value
  23. if(!rotation || !this.rotation){
  24. this.rotation = goog.vec.Vec3.create();
  25. } else if ( ! goog.vec.Vec3.equals( this.rotation || goog.vec.Vec3.create(), rotation ) ) {
  26. this.rotation = rotation;
  27. this.rotationChanged( rotation);
  28. }
  29. get: |
  30. return this.rotation || goog.vec.Vec3.create();
  31. scale:
  32. set: |
  33. var scale = this.translationFromValue( value ); // parse incoming value
  34. if(!scale || !this.scale){
  35. this.scale = goog.vec.Vec3.create();
  36. } else if ( ! goog.vec.Vec3.equals( this.scale || goog.vec.Vec3.create(), scale ) ) {
  37. this.scale = scale;
  38. this.scaleChanged( scale);
  39. }
  40. get: |
  41. return this.scale || goog.vec.Vec3.create();
  42. clickable:
  43. displayName:
  44. visible:
  45. edit:
  46. osc:
  47. ownedBy:
  48. class:
  49. events:
  50. positionChanged:
  51. rotationChanged:
  52. scaleChanged:
  53. sendOSC:
  54. intersectEvent:
  55. clearIntersectEvent:
  56. hitstartEvent:
  57. hitendEvent:
  58. methods:
  59. intersectEventMethod:
  60. clearIntersectEventMethod:
  61. hitstartEventMethod:
  62. hitendEventMethod:
  63. sendOSC:
  64. parameters:
  65. - msg
  66. setGizmoMode:
  67. parameters:
  68. - mode
  69. showCloseGizmo:
  70. lookAt:
  71. parameters:
  72. - nodeID
  73. worldRotation:
  74. worldPosition:
  75. translationFromValue:
  76. parameters:
  77. - propertyValue
  78. getChildByName:
  79. parameters:
  80. - name
  81. setOwner:
  82. parameters:
  83. - propertyValue
  84. scripts:
  85. - source: "http://vwf.example.com/aframe/aentity.js"