Monday 1 November 2010

Consider Phidgets

From week 4 i got something interesting to put my teeth into, finally get the control system to develop!

For the game we want to use an accelerometer for moving the ball, this isnt vital to the game as we have been developing it for keyboard to start with. The code looks interesting and should be pretty fun to do.

Me and Alex managed to get the ball rolling! By setting the player inside the sphere we made sure the camera was focused at the right area, this was a massive breakthrough and we let out a massive cheer, there was only one slight problem: the camera rotated around the ball!

It lookd fun but was very disorientating to watch and you had no idea where you were going. Back to the drawing board with this one to figure out what to do. After a few hours i think we had a flash of genius and either me or Alex came up with the solution, we needed to fix one vector of the balls coordinates, this would mean that the camera would not be able to rotate with the ball but should still keep fixed on it. By stoping it moving on the Z axis we solved the problem and it looked beautiful.

No comments:

Post a Comment