Hey guys,
So, I know I can use the accelerometer to determine tilt/shake movement, but I was curious if anyone knew if it was possible to determine the angle of the device.
I’d like to be able to control the main camera based on the angle they hold the phone at, but I can’t figure out if it’s possible to actually turn the accelerometer data into an angle rather than a force.
Have a look at the trig functions - use the magnitudes of the the accelerometer axis’ and arctan to calculate the angle.
Hope that helps 
The accelerometer measures the acceleration of the device in three dimensions xyz. If you are simply holding the device, the acceleration will be 9.8 meters per second (gravity). I think the accelerometer measures is G’s. So if your iphone is just sitting on the table, the reading will be about Vector3(0,0,1). But you will get the same reading if you spin your iphone around on the table, so the accelerometer is kind of limited in that way. With the iphone and itouch 4g, the gyroscope allows you to read spin. Combining the accelerometer and the gyroscope should let you test for almost any type of movement you need. Though, you’ll have do download (or possibly make your own) plugin to access the gyroscope features.
You’ll never get a decent angle from the accelerometer, if you attached a camera to the output it’ll shake around from all the noise.
Your best bet is to use the gyro of the new devices to get accurate angles
If you did use the accelerometer, you could always add a smooth camera angle function or some kind of math that smooths it out. This would however make the camera movement feel sluggish and a bit inaccurate, but would be a decent alternative to buying a gyro plugin if you don’t want to spend money. But if you can find a free plugin or but one or figure out some other way to access the gyroscope features, I’d defiantly go with that.