eelSpeed;
            }
            else {
                translate /= wheelSpeed;
            }
            updateCamera();
        }

        function updateCamera() {
            camPos = [-translate * Math.sin(roll) * Math.cos(-pitch),
            -translate * Math.sin(-pitch),
            translate * Math.cos(roll) * Math.cos(-pitch)];
        }

        const btns = document.getElementsByClassName('btn');
        for (let i = 0; i < btns.length; i++) {
            btns[i].onclick = function(e) {
    