Hi, I already wrote a collisionrequest with polygons and one with a picture (pixeldetection).
I don´t know, what I should use in the future, because I read that working with complex polygons is quite slow. On the Other side, for my pixeldetection I create a bufferedimage but it´s anoying to paint every object on it, especially if I remove an Object, I have to repaint a part of the picture. In addition, “moving blocking” entitys aren´t really possible.
What do you prefer? In which case should I use one of these?
best regs. Phibedy
Polygons. Most of the time pixels are slower, and being pixel-perfect often isn’t necessary. Polygons are accurate enough for most purposes.