var yKat = _ymouse - pers._y var xKat = _xmouse - pers._x var angle = Math.atan2( yKat ,xKat ) + Math.PI pers._rotation = angle*180/Math.PI