# Rotation is always off?

**URL:** <https://forum.kirupa.com/t/rotation-is-always-off/317515>\
**Category:** flash\
**Created:** [December 23, 2010, 6:18am UTC](https://forum.kirupa.com/t/rotation-is-always-off/317515 "2010-12-23T06:18:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newsomjk](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@newsomjk](https://forum.kirupa.com/u/newsomjk)\
**Post date:** [December 23, 2010, 6:18am UTC](https://forum.kirupa.com/t/rotation-is-always-off/317515/1 "2010-12-23T06:18:40Z")

</div>

So I’ve found numerous tutorials on rotating to face the mouse, and none of the rotation equations work properly for me. I made my own that worked but then it just over complicated things such as bullet direction and the likes so I want to figure out what’s going wrong.

```
Code:
	var radians:Number =Math.atan2(mouseY-ME.y,mouseX-ME.x)
var degrees:Number = (radians/Math.PI)*180;
ME.rotation=degrees; 

```

that is the only code that changes the rotation of my movieclip. and it always seems to be about 45 degrees behind my mouse?

![](http://img683.imageshack.us/img683/1410/rotoff.png)
