aentity.vwf.yaml 963 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 ( ! goog.vec.Vec3.equals( this.position || goog.vec.Vec3.create(), position ) ) {
  13. this.position = position;
  14. this.positionChanged( position);
  15. }
  16. get: |
  17. return this.position || goog.vec.Vec3.create();
  18. rotation:
  19. scale:
  20. clickable:
  21. displayName:
  22. visible:
  23. edit:
  24. osc:
  25. events:
  26. positionChanged:
  27. methods:
  28. setGizmoMode:
  29. parameters:
  30. - mode
  31. showCloseGizmo:
  32. lookAt:
  33. parameters:
  34. - nodeID
  35. worldRotation:
  36. worldPosition:
  37. translationFromValue:
  38. parameters:
  39. - propertyValue
  40. scripts:
  41. - source: "http://vwf.example.com/aframe/aentity.js"