# Accelerometer, AS3 and making smooth rotation

**URL:** <https://forum.kirupa.com/t/accelerometer-as3-and-making-smooth-rotation/322923>\
**Category:** Uncategorized\
**Created:** [June 8, 2011, 7:07pm UTC](https://forum.kirupa.com/t/accelerometer-as3-and-making-smooth-rotation/322923 "2011-06-08T19:07:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tugboat](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tugboat](https://forum.kirupa.com/u/tugboat)\
**Post date:** [June 8, 2011, 7:07pm UTC](https://forum.kirupa.com/t/accelerometer-as3-and-making-smooth-rotation/322923/1 "2011-06-08T19:07:56Z")

</div>

Hello People!

I’m building an iPhone application in which an avatar’s rotation is determined by the accelerometer.

It works (ish, that is), but here’s the problem: if the user switches the position of the device too quickly, the avatar’s rotation shifts instantly, resulting in a very jarring (and extremely unorganic) movement.

In sum, I’m looking for a way to guarantee that it ‘spins’ to its new rotation instead of just **poof** appearing there.
