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.
Shape shapes = getShape().subtract(new Circle(hit.pt.x, hit.pt.y, size+2, (int) (10+size/3)));
full sources, if neededhttp://rghost.ru/38715446
Code with substract are placed in Wall class.
I would be very grateful for the help.
Sorry for my worse english.