Answers for "requestAnimationFrame without loss context angualar"

0

requestAnimationFrame without loss context angualar

protected animate() {
    requestAnimationFrame( this.animateCallback.callAnimate );

    this.mesh.rotation.x += 1;
    this.mesh.rotation.y += 1;

    this.renderer.render( this.scene, this.camera );

  }
Posted by: Guest on April-26-2020
0

requestAnimationFrame without loss context angualar

this.animateCallback = {
      callAnimate: (this.animate).bind(this)
    };
    this.animateCallback.callAnimate();
Posted by: Guest on April-26-2020

Browse Popular Code Answers by Language