temp.dx = worldx(DragItem.x,0) - player.x;temp.dy = worldy(0,DragItem.y) - player.y;player.dir = getdir(temp.dx, temp.dy);