I’m trying to make sense of the orthographic camera mode.
I understand that I can set the area which the camera shows by setting:
- orthoLeft
- orthoRight
- orthoTop
- orthoBottom
But when I try to monitor the movement of the camera, these properties don’t seem to change. For example by doing:
camera.onViewMatrixChangedObservable.add(() => {
console.log(camera.orthoLeft, camera.orthoRight, camera.orthoTop, camera.orthoBottom);
});
However, by setting these properties I’m able to move the camera. For example:
setTimeout(() => {
camera.orthoLeft +=1;
camera.orthoRight +=1;
}, 1000);
My understanding was that these properties define the area that the camera is viewing, but now I’m not sure if that’s correct.
- What’s the correct way to change the position of a camera in orthographic projection? Should I use these ortho* properties or not?
- What’s the real meaning of these ortho* properties? Like, what does the orthoLeft really mean? Like, is it the left relative to world 0,0,0 coordinate, or something else?
The documentation of orthoLeft says:
Define the current limit on the left side for an orthographic camera In scene unit
I’m not sure how to interpret that.