All,
I’m abstracting in my mind how I’d like to try and implement camera movement similar to games such as WarCraft II/III or StarCraft, where the camera moves along the x/y when the mouse reaches certain regions of the screen.
The best I can come up with is to divide the edges into eight areas. Four corners and four sides. If the mouse is in a corner the camera moves in the x and y directions, if on a side, only the x or y direction.
How I’m wanting to do this would be invisible planes. If the mouse moves over the plane, it will cause the camera x and or y values to change accordingly. Is there a better way of doing this?
Thank you!