I have a map that the user needs to be able to rotate. I don't want to use
a SphereSensor because I need to put limitations on the rotation. Ideally,
only let the user rotate the map in a semi-circle that is defined by the
users position or in other words, always keep the map in a readable position
from the users point of view. Once the viewer has moved to a different
point they should still be able to rotate the map, but the coordinates of
the semi-circle will be different.
My first thought is that is I could get the normal of the map then I could
find the angle between the viewpoint and this normal. While I can find the
normal, the coordinates of the map change as the user rotates it and I am
having trouble with the math.
So, does anyone have an example, a better idea, or a pointer to material
that will help me out?