updateCameraTransformOnChange() {
        const { camera, clock, scene, controls } = this;
        const { section } = this.state;
        const cameraInfo = section.camera;
        const pos = cameraInfo.position;
        camera.position.set(pos.x, pos.y, pos.z);
        const lookAt = cameraInfo.lookAt;
        // camera.lookAt(lookAt.x, lookAt.y, lookAt.z);
        controls.target = new THREE.Vector3(lookAt.x, lookAt.y, lookAt.z);
    }
/**
     * Called whenever section changes state (which can be the same location with new camera info.)
     */
Called whenever section changes state (which can be the same location with new camera info.)
Called whenever section changes state ( which can be the same location with new camera info . )
updateCameraTransformOnChange() {
        const { camera, clock, scene, controls } = this;
        const { section } = this.state;
        const cameraInfo = section.camera;
        const pos = cameraInfo.position;
        camera.position.set(pos.x, pos.y, pos.z);
        const lookAt = cameraInfo.lookAt;
        controls.target = new THREE.Vector3(lookAt.x, lookAt.y, lookAt.z);
    }
updateCameraTransformOnChange ( ) { const { camera , clock , scene , controls } = this ; const { section } = this . state ; const cameraInfo = section . camera ; const pos = cameraInfo . position ; camera . position . set ( pos . x , pos . y , pos . z ) ; const lookAt = cameraInfo . lookAt ; controls . target = new THREE . Vector3 ( lookAt . x , lookAt . y , lookAt . z ) ; }
Called whenever section changes state (which can be the same location with new camera info.)
Called whenever section changes state ( which can be the same location with new camera info . )
// camera.lookAt(lookAt.x, lookAt.y, lookAt.z);