# Atan?

**URL:** <https://forum.kirupa.com/t/atan/214739>\
**Category:** flash\
**Created:** [January 31, 2007, 4:41pm UTC](https://forum.kirupa.com/t/atan/214739 "2007-01-31T16:41:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macsy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/macsy/32/3238_2.png) [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Post date:** [January 31, 2007, 4:41pm UTC](https://forum.kirupa.com/t/atan/214739/1 "2007-01-31T16:41:50Z")

</div>

Hi. I need to know how to make an object facing an another object with \_rotation.  
Suppose to be like  
\_rotation = atan(y1-y2 / x1-x2)  
But i dont get it to work…  
Which object is Y1 and Y2, and X1 and X2? The object thats is facing or the other object?  
This is pretty simple.  
Thanks!
