- Home /
Question by
beck · Apr 19, 2011 at 03:08 AM ·
androidmobileaccelerometer
Camera linked directly to device orientation
Hello, I'm a little new to Android development so the accelerometer features are quite new to me. I am trying to link the Z rotation of the camera directly to the Z rotation of the device, so that the roll of the camera coincides with the roll of the device.
I'm not sure how to do this. I've tried simply setting the local euler angles to a acceleration.z/180 which yielded some poor results. Is there a way to set this up?
Comment
try dividing it by different numbers. without scripts and an explanation of what is wrong there can be no further help