Hi,
in my game the user clicks with the mouse to position the player; each position is stored in an ArrayList:
private List <Ellipse2D>playerAllCoordinates = new ArrayList<Ellipse2D>();
Now I need these coordinates for collision detection; for this I am using the polygon class.
Is it possible to construct a polygon using the x and y coordinates stored in this ArrayList (or a similar ArrayList so that I can paint a polygon using the stored coordinates?)?