if( keyboard.pressed("up"))
pobjects[movementControls.translate].translateX(1);
if( keyboard.pressed("down"))
pobjects[movementControls.translate].translateX(-1);
if( keyboard.pressed("left"))
pobjects[movementControls.translate].translateZ(-1);
if( keyboard.pressed("right"))
pobjects[movementControls.translate].translateZ(1);
if( keyboard.pressed("w"))
pobjects[movementControls.translate].translateY(1);
if( keyboard.pressed("s"))
pobjects[movementControls.translate].translateY(-1);
if( keyboard.pressed("x"))
cobjects[movementControls.rotate].rotation.x+=0.1;
if( keyboard.pressed("y"))
cobjects[movementControls.rotate].rotation.y+=0.1;
if( keyboard.pressed("z"))
cobjects[movementControls.rotate].rotation.z+=0.1;
In this context, the goal is to manipulate object rotation, scaling, and translation without using three.js functions but relying solely on pure webGL techniques.