mrdoob/three.js — Issue #670: Camera rotation
Author: nosy-b
Created: 2011-10-21 09:21:01+00:00
State: open

Hello,
I've seen many questions about it but no answer using NO target.

I'm in the center of a panoramic. As i do stuff with laser cloud navigation i first want a simple independent camera that can rotate around it's own position.
camera.rotation.y works fine. But if I add a rotation on x it's a mess as it doesn't make the camera change it's local frame of reference after the first rotation.
So a rotation around X from 45° then on Y 45° too will tilt the camera.
For other Object3D there is not this problem, rotations are done using the last local coordinate system. Why does the camera react like that? (All its rotations are done using the global frame of reference)

I tried many different solution, I don't get it so if you have any ideas :)
thanks!