How to use the tween.js.update function in tween

To help you get started, we’ve selected a few tween examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github borismus / copresence-vr / src / main.js View on Github external
//console.log('Sent state to peer %s.', pc.remotePeerId);
      pc.send(JSON.stringify(state));
    }

    // Set the pose of the observer in the audio renderer.
    var ar = audioRenderers[pc.remotePeerId]
    var pr = peerRenderers[pc.remotePeerId];
    if (ar && pr) {
      ar.setPose(pose);

      // Reflect your peer's audio level in the peer renderer.
      pr.setPeerAudioLevel(ar.getLevel());
    }
  }

  TWEEN.update();

  rafID = requestAnimationFrame(render);
}
github shinseed / BIMServer-NodeJs / BIMServerSrc / components / threeView / util.js View on Github external
render() {
        if (!this.renderer.autoClear) this.renderer.clear();

        this.controls.update();

        // this.CameraHelper.update();
        TWEEN.update();

        this.pinObj3D.children.forEach((item) => {
            item.lookAt(this.controls.object.position);
        })

        this.octree.update();

        this.renderer.render(this.scene, this.camera);
    }
}
github getlackey / lackey-cms / modules / cms / client / js / manager / dummy.js View on Github external
function animate(time) {
      requestAnimationFrame(animate);
      TWEEN.update(time);
}
github nervoussystem / bookshelf / gui.js View on Github external
function animate(time) {
	requestAnimationFrame(animate);
	TWEEN.update(time);
}
github PixelsCommander / HTML-GL / src / gl-element / transition-manager / index.js View on Github external
function animate(time) {
    requestAnimationFrame(animate);
    TWEEN.update(time);
}
github ksandin / darkestdungeon / src / main.tsx View on Github external
function animate (time: number) {
  TWEEN.update(time);
  requestAnimationFrame(animate);
}
github nhalloran / liquidity.js / phillyContracts / src / movieTweens.js View on Github external
movieTweens.update = function(time) {

        //move to tweens
        var alpha = alphaTimeline.getAlpha(time * 1000);
        if(revDots.visible){
          revDots.force.alpha(alpha);
          revDots.force.tick();
        }

        if(popDots.visible){
          popDots.force.alpha(0.05);
          popDots.force.tick();
        }


        TWEEN.update(time * 1000);


    };
github touchstonejs / touchstonejs / src / core / animation.js View on Github external
function update () {
	animation.update();
	if (animation.getAll().length) {
		window.requestAnimationFrame(update);
	}
}
github NghiaTranUIT / data-visualization-deck-gl / example / main.js View on Github external
animate(time) {
    window.requestAnimationFrame(this.animate)
    TWEEN.update();
  },

tween

Super simple, fast and easy to use tweening engine which incorporates optimised Robert Penner's equations.

Unrecognized
Latest version published 11 years ago

Package Health Score

56 / 100
Full package analysis

Popular tween functions