In my scene, I have a
Box bbox - which is instantiated from a custom
struct -, and an
// Set camera to isometric-like perspective view cam.setNearClip(0.1); cam.rotateDeg(135, cam.getZAxis()); glm::vec3 center = bbox->getCenter(); // center point of a box double radius = 125.0; // distance between camera and box center cam.setPosition(center.x, center.y, center.z + radius); cam.rotateAroundDeg(75, cam.getXAxis(), center); cam.rotateDeg(75, cam.getXAxis());
I rotate and move the camera so that it creates an orthographic-like view, which totally works! However, the mouse interactions now feel unnatural and weird when dragging the mouse from left to right or vis versa.
When I drag the mouse cursor to right the box gets tilted to the left?
The small object that you can see at one of the bottom corners of the box is a plane that has the origin (0, 0, 0), a x-axis (1, 0, 0) and a y-axis(0, 1, 0). It represents the origin and direction of the box in the first place, if that makes sense.
bbox is defined by a plane a width, height, and depth.