Hallo bilbo-bongo
First of all: it sounds like it is exactly what you need
You really don't need a 6DOF for your project. You only need 3 accelerometers and 2 gyros. But if you don't want to get your hands dirty, you can just buy the same IMU as me and just copy the code.
The only thing you need is some way of picking up the serial commands from the Arduino, exactly as I did with Processing.
Hope that gave you some answers
- Lauszus