I have a "small" problem with my code that convert the mouse position to radiance.
I need the mouse position to determine where the head of my robot must point to. The code works and head turns ... but! It reaches max of pitch too quickly.
As I am not exactly super sharp in radiance calculation or C#, I have to resort to expert help. :)
My code:
maxcursory = Screen.PrimaryScreen.Bounds.Height;
cursory = Cursor.Position.Y;
pitch = (float) (((3 / maxcursory * cursory) - 1.5) * 1);
The min and max values I need: -0.6720 to 0.5149
Edit: Fixed code display error. ;)
Edit 2: Added min and max values