HELP with accelerometer and rotation

Hello,
I am trying to use the accelerometer to rotate an actor between 45 and 315 degrees. Going to 45 is ok and back to 315 is good but when i want to go from 315 to 45 it rotates the wrong way.
Anybody have any clue on how I can achieve this? I've tried constraining to an offset but it seems ti wig out.
Any help, much appreciated.
t.
I am trying to use the accelerometer to rotate an actor between 45 and 315 degrees. Going to 45 is ok and back to 315 is good but when i want to go from 315 to 45 it rotates the wrong way.
Anybody have any clue on how I can achieve this? I've tried constraining to an offset but it seems ti wig out.
Any help, much appreciated.
t.
Comments