Tuesday, June 7, 2011

First screenshot of new project, mouse look

You can now look around the cockpit using the mouse.

In order to get the mouse's relative movement, I used raw input.  After I have the relative movement vector, I multiply it by the mouse sensitivity and multiply that by the rotation speed.  This gives the final angular velocity vector which I use to integrate the orientation.

Here is a screenshot of what the game looks like so far.  I plan on removing the "blast shield" tomorrow and put in a star filled background.  Before I can make it so you can fly around, I need to make it so that you can tell you are moving!

No comments:

Post a Comment