donderdag 7 april 2011

Searching the Internet for Polygon vs Polygon collision.

I found this

  Area a1 = new Area();
  Area a2 = new Area();

Then I found this.

Area intersect = new Area();
intersect.add(new Area(polygon));
intersect.intersect(new Area(p.polygon));
return !intersect.isEmpty();

Now I think that I can make two polygons collide.

Geen opmerkingen:

Een reactie posten