I create a 2D shooter on Libgdx. There is a sprite of a spaceship and a shell. It is necessary to do so that when the textures of the ship and the projectile intersect, then ... the ship's health decreases, let's say. But at the same time that the collisions were strictly along the contour of the textures. Maybe in libgdx there is some sort of class for creating exact collisions? Tell me.

  • There are no exact collisions, I created a generator of polygons for my project when it was required. It all came down to the fact that I fed him an image, and he spat out a polygon based on the contours of the image. This was all done using Pixmap. - Asidert

0