mrdoob/three.js — Issue #1274: Rotating the camera
Author: Spac3Rat
Created: 2012-02-08 15:04:04+00:00
State: open

Hello.

First of all, great job with the framework. It's amazing.

I'm having an issue (which is probably me doing something wrong, tbh). Whenever I rotate a camera on its Y axis, the X axis does not rotate.

To be more clear, imagine that you start the engine pointing at 0º. If you pitch up and down, everything goes as it should. If you turn 180º, the X axis remains at the same position. Pitch is now reversed. And if you turn to 90º or 270º and try to pitch you will actually roll, instead of pitch. Just as if the X axis remains in the original position.

I am using camera.rotation to achieve movement. Everything works great except for the pitch issue.

Thank you in advance for any help you can provide.