I'm setting up a few (ok, seven :xp:) cameras for a WIP mod. I was wondering, when adjusting the orientation, is there an easy way to tell which way I'm adjusting it? (i.e: left or right) I would be glad if someone could give me a few pointers. :)
It's pushing 4am here, so if my post doesn't make much sense it's because my tiredness is showing. :P
Anyways, as far as I'm aware of the only way you can get the coordinates which govern the orientation of a static camera is through applying a formula to the angle at which you wish the camera to face.
In the orientation field in the .git file, there are 4 value boxes. The 1st and 4th contain the coordinates which govern orientation, whilst the 2nd and 3rd are generally blank (No idea what they govern).
Decide on which way you want the camera to face towards, then convert that to an angle (North: 90, East: 0, South: 270, West: 180), grab a scientific calculator and apply the angle to the following formula;
1st value box = cos (angle/2)
4th value box = sin (angle/2)
So for example, if I wanted my camera to face North, my chosen angle would be 90. The 2 calculations that I would have to perform to get the coordinates for the 1st and 4th value boxes would be.
1st = cos 45
4th = sin 45
Which according to my scientific calculator gives me;
1st = 0.707106781
4th = 0.707106781
That's the way I determine the orientation coordinates for my static cameras, so it should work for you.
Thanks; Though, I just needed to figure out which angle was which direction. (I already knew about the rest.) :D This should help me get done quicker with my mod.
Assuming the player is standing still, facing down a corridor or something; 0 degrees would be to the right of them, 90 degrees would be directly in front, 180 degrees would be to the left whilst 270 degrees would be behind.
You can use this tool (
http://www.interactive-resources.co.uk/mathspack1/angle/angle.html) to get a specific angle.