Can anyone help me with the equation for rotating an object with accelerometer?
Currently I am trying with
rotation = math.atan2(e.xGravity, e.yGravity);
rotation = rotation\*(180/math.pi);
But it doesn’t look realistic. I tried xInstant and yInstant. But they are too faster and the object always moves… Any idea? [import]uid: 104777 topic_id: 30925 reply_id: 330925[/import]
[import]uid: 104777 topic_id: 30925 reply_id: 123684[/import]