This is my portfolio of projects I've completed. I'm going to be putting up images and descriptions, if I can I will also try to post demo videos and hopefully an installer that anyone can download to try the games themselves.
Tuesday, 8 May 2012
Tunnel Flyer 3D Flight Controls Complete!
I just completed the 3D flight controls for Tunnel Flyer. The ship is controlled using the accelerometer. Riemers XNA Tutorial on quaternion rotations and flight kinematics were extremely useful for quickly wrapping my head around a nice easy way to rotate vectors. When using the accelerometer data for inputs, the movements were very choppy. I looked into using a filter of some kind, I quickly came across a low-pass filter but that wasn't what I was looking for. So I resorted to making my own smoothing algorithm that uses two previous input values to smooth out the current value. Overall the controls need a bit of tweaking but for now I'm quite happy with the result as now the ship moves around mostly fluidly. :-)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment