I\'m developing a Java game (but the dev. language doesn\'t really matter) including rounded objects like balls or pucks, and now working on collisions. I use a timer, so o
In Java, you have a java.awt.Polygon.
The Polygon
class has multiple contains methods and intersect methods.
Defining a circle as a Polygon
is a pain, depending on how accurate you want the circle to be. But once you've defined all of your objects as Polygon
s, you can use the defined methods to detect collisions.