i finally found a way to do a nice collision detection using polygons.
The problem i have now is that when i rotate the polygon, that i draw on screen using SDL2_gfx library, the polygon is correct, but the bitmap that i rotate via RenderCopyEx function doesn’t match at all.
//Move the ship
ship.move(shipPosX, shipPosY, shipAngle);
then i call the render function
ship.render();
if i print the angle of vecShape and the angle of the ship the angle is the same, but clearly the shape of the ship rendered with RenderCopyEx is wrong.
I wrongly has an assumption that the original value was in Angle and had to convert to rad. Quite the contrary.
Original values are in radiants and now i convert to degree and it works like a charm.