aentity.vwf.yaml 2.5 KB

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