Here is an addon I made this morning for accessing the sudden motion sensor of Apple hardware. It wraps unimotion and provides simple access to features such as smoothed values, relative calibration, and sms value modes.
Using the SMS to simulate gravity is really fun, I did it with the processing library a while back (all I did was literally add the values from the SMS to the velocity vectors of all of the particles. It seemed to work pretty well for the most part. http://www.vimeo.com/1275551 (I should really re-record the video with the camera just looking at the screen, cos it would make it easier to see)
I look forward to messing around with it in OpenFrameworks too. I really need to try Box2d- seems a lot easier than building a physics engine from scratch like I have been doing.