I am trying to achieve that with perspective camera, and this is my current setup:
camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 1, 1000);
camera.position.x = 3;
camera.position.y = 1.8;
camera.position.z = 3.8;
camera.zoom = 1.1;
and this is how it looks like (the view of the floor is too big):
So, how can I move the position of the camera along the y-axis while still looking at the same position (less floor and more text - just like the design), because if i change the value of camera.y, the camera moves vertically but not what I wanted for this case.
function move( ) {
if ( keyCode === 87 ) { if ( withinBorders( moveForward ) ) moveForward( camHolder ) } // w fast vorward
if ( keyCode === 83 ) { if ( withinBorders( moveBack ) ) moveBack( camHolder ) } // s backward a little slower
if ( keyCode === 65 ) { if ( withinBorders( moveLeft ) ) moveLeft( camHolder ) } // a slowly leftwards
if ( keyCode === 68 ) { if ( withinBorders( moveRight ) ) moveRight( camHolder ) } // d slowly rightwards
if ( keyCode === 76 ) { turnLeft( camHolder ) } // l turn to the left
if ( keyCode === 82 ) { turnRight( camHolder ) } // r turn to the right
if ( keyCode === 84 ) { goTop( camHolder ) } // t upstretch
if ( keyCode === 66 ) { goBottom( camHolder ) } // b bend down
if ( keyCode === 38 ) { lookUp( camera ) } // up arrow, looking higher -> camera
if ( keyCode === 40 ) { lookDown( camera ) } // down arrow, looking deeper -> camera
}