- Home /
Moving a Rotated Camera
I'm currently building an isometric camera system that allows the user to rotate, move and zoom. The camera works exactly how I want it to when you first open up the scene, however if you rotate 90 degrees (use the "]" key) I find I can't move the camera along any axis (X,Y,Z,XY,XZ,YZ etc) without the camera moving diagonally.
Does anybody know what I should be doing in order to get the camera moving correctly?
The demo scene can be viewed on this site
Do you have two separate scripts handling camera movement?
It's all in one script. I created functions that allow you to move along axes, you can also modify the +iv and -ive direction that you move along on each individual axes
Looks horribly overcomplicated.
At a glance I'm gonna say that the issue is the parenting. You manipulate the rotation of the container but the transform of the camera itself.