1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- ---
- extends:
- http://vwf.example.com/node3.vwf
- properties:
-
-
-
-
-
- sway-swaying:
- set: |
- if ( value && ! this["sway-start"] ) {
- this["sway-start"] = this.time;
- this.sway();
- } else if ( ! value && this["sway-start"] ) {
- this["sway-start"] = null;
- }
- get: |
- return !! this["sway-start"];
-
-
-
-
- sway-rate: 1
-
-
-
-
- sway-axis: [ 0, 1, 0 ]
-
-
-
-
- sway-start: null
- methods:
-
-
-
-
-
-
-
- sway:
-
- scripts:
- - |
- this.pointerClick = function() {
- // this["sway-swaying"] = ! this["sway-swaying"];
- }
- this.sway = function() {
- var start = this["sway-start"];
- if ( start ) {
- this.rotateBy( [ this["sway-axis"][0], this["sway-axis"][1], this["sway-axis"][2], Math.cos( this.time - start ) * Math.PI / 2 ], 0 );
- this.future( 0.05 ).sway();
- }
- } //@ sourceURL=sway-on-click.vwf
|