aentity.vwf.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. stepping:
  50. stepTime:
  51. globalBeat:
  52. getRandomColor:
  53. events:
  54. positionChanged:
  55. rotationChanged:
  56. scaleChanged:
  57. sendOSC:
  58. intersectEvent:
  59. clearIntersectEvent:
  60. hitstartEvent:
  61. hitendEvent:
  62. clickEvent:
  63. methods:
  64. intersectEventMethod:
  65. clearIntersectEventMethod:
  66. hitstartEventMethod:
  67. hitendEventMethod:
  68. clickEventMethod:
  69. sendOSC:
  70. parameters:
  71. - msg
  72. setGizmoMode:
  73. parameters:
  74. - mode
  75. showCloseGizmo:
  76. lookAt:
  77. parameters:
  78. - nodeID
  79. worldRotation:
  80. worldPosition:
  81. translationFromValue:
  82. parameters:
  83. - propertyValue
  84. getChildByName:
  85. parameters:
  86. - name
  87. setOwner:
  88. parameters:
  89. - propertyValue
  90. updateMethod:
  91. parameters:
  92. - methodName
  93. - methodBody
  94. - params
  95. callMethod:
  96. parameters:
  97. - methodName
  98. - params
  99. onGlobalBeat:
  100. parameters:
  101. - obj
  102. changeVisual:
  103. resetVisual:
  104. step:
  105. do:
  106. randomize:
  107. scripts:
  108. - source: "http://vwf.example.com/aframe/aentity.js"