Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myRadians = Math.atan2(_parent._y-_root._ymouse-this._y,_parent._x- _root._xmouse-this._x);
  2.     myDegrees = Math.round((myRadians*180/Math.PI));
  3.     this._rotation = myDegrees;
  4.  
  5.  
  6. ///in as3 its something like this
  7. Math.abs(Math.atan2((y1-y2),(x1-x2)))*(180/Math.PI)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement