I am working on a simple Three.js demo that uses OrbitControls.js.
I would like to change the panning behavior in OrbitControls. Currently, when panning a camera, the camera moves in a plane perpendicular to the viewing direction. I would like to change it so that the camera remains at a certain distance from the plane of the earth and moves parallel to it. Google Earth uses a similar control setting.
Edit: I should have mentioned this part in the first place, but I would also like the point you click on and start dragging to stay under the cursor during the whole drag. There should be such a strong connection between the movement of the mouse and what the user expects on the screen. Otherwise, it seems to me that I "crawl" when I try to move around the stage.
Can someone give me a detailed explanation of how this can be done (with orbitControls.js or without)?
source share