Currently, I am tinkering with adjusting the behavior of the panUp function in three.js' orbit controls.
By default, this function moves the camera up and down along the y axis. However, I want to change it so that it moves in and out along the z axis instead. Essentially, I am looking for it to mimic the behavior of the panLeft function but on a different axis.
I attempted to tweak the panOffset from:
panOffset.set( te[4], te[5], te[6] );
to:
panOffset.set( te[2], te[1], te[0] );
This adjustment somewhat works, but limits the camera's movement to only the x and z axes without allowing a combination of both. On the contrary, the panLeft function can move the camera freely in any direction.