Some camera movements.
Maybe there’s something in it for you?
See in the Collection of examples from discourse.threejs.org 218
(https://hofk.de/main/discourse.threejs/2018/index2018.html)
HumanEyesCamera - @prisoner849, hofk
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
}