1234567891011121314151617181920212223242526272829303132333435 |
- /**
- * @author sunag / http://www.sunag.com.br/
- */
- THREE.NodeFrame = function ( time ) {
- this.time = time !== undefined ? time : 0;
- this.delta = 0;
- this.frameId = 0;
- };
- THREE.NodeFrame.prototype.update = function ( delta ) {
- ++this.frameId;
- this.time += delta;
- this.delta = delta;
- return this;
- };
- THREE.NodeFrame.prototype.updateFrame = function ( node ) {
- if ( node.frameId === this.frameId ) return this;
- node.updateFrame( this );
- node.frameId = this.frameId;
- return this;
- };
|