1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # https://aframe.io/docs/0.5.0/core/entity.html
- ---
- extends: http://vwf.example.com/aframe/node.vwf
- type: "a-entity"
- implements:
- - http://vwf.example.com/animation/animation.vwf
- - http://vwf.example.com/animation/animationNode.vwf
- properties:
- position:
- set: |
- var position = this.translationFromValue( value ); // parse incoming value
- if(!position || !this.position){
- this.position = goog.vec.Vec3.create();
- } else if ( ! goog.vec.Vec3.equals( this.position || goog.vec.Vec3.create(), position ) ) {
- this.position = position;
- this.positionChanged( position);
- }
- get: |
- return this.position || goog.vec.Vec3.create();
- rotation:
- set: |
- var rotation = this.translationFromValue( value ); // parse incoming value
- if(!rotation || !this.rotation){
- this.rotation = goog.vec.Vec3.create();
- } else if ( ! goog.vec.Vec3.equals( this.rotation || goog.vec.Vec3.create(), rotation ) ) {
- this.rotation = rotation;
- this.rotationChanged( rotation);
- }
- get: |
- return this.rotation || goog.vec.Vec3.create();
- scale:
- clickable:
- displayName:
- visible:
- edit:
- osc:
- events:
- positionChanged:
- rotationChanged:
- methods:
- setGizmoMode:
- parameters:
- - mode
- showCloseGizmo:
- lookAt:
- parameters:
- - nodeID
- worldRotation:
- worldPosition:
- translationFromValue:
- parameters:
- - propertyValue
- getChildByName:
- - name
- scripts:
- - source: "http://vwf.example.com/aframe/aentity.js"
|