aentity.vwf.yaml 2.6 KB

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