Hi. I have a problem with substract.
In the game implemented destructible walls. Sometimes, for unknown reasons, when a bullet hit the wall, instead of to subtract, add a circle to a polygon wall. I create a circle centered at the point of contact between the bullet and polygon walls, the size is taken at random.
Screenshot:

Code:
Code:
Shape[] shapes = getShape().subtract(new Circle(hit.pt.x, hit.pt.y, size+2, (int) (10+size/3)));
full sources, if needed
http://rghost.ru/38715446Code with substract are placed in Wall class.
I would be very grateful for the help.
Sorry for my worse english.