protected animate() { requestAnimationFrame( this.animateCallback.callAnimate ); this.mesh.rotation.x += 1; this.mesh.rotation.y += 1; this.renderer.render( this.scene, this.camera ); }
this.animateCallback = { callAnimate: (this.animate).bind(this) }; this.animateCallback.callAnimate();