Joseph Posted August 23, 2015 Share Posted August 23, 2015 (edited) i was not really sure what to call it, but here the method i use for Divine utility. Method returns a position under your mouse. public Position findUnderMouse() { if (getMouse().isWithinCanvas()) { Area area = myPlayer().getArea(25); area.setPlane(getMap().getPlane()); for (Position pos: area.getPositions()) { if(pos.isVisible(getBot()) && pos.getPolygon(getBot()).contains(mouse.getPosition())) { return pos; } } } return null; } Edited August 23, 2015 by jos3dpay 2 Quote Link to comment Share on other sites More sharing options...