I am trying to do some rotation on a object constructed of triangles. For the most part, this works. The issue I am having is at certain points, some of the convex shapes form a "line", and SFML seems to not like it or something. Here is the code I am using:
sf::ConvexShape drawObj;
drawObj.setPointCount(3);
drawObj.setFillColor(sf::Color::Transparent);
drawObj.setOutlineColor(sf::Color::White);
drawObj.setOutlineThickness(2.0f);
drawObj.setPoint(0, sf::Vector2f(249, 258));
drawObj.setPoint(1, sf::Vector2f(353, 257));
drawObj.setPoint(2, sf::Vector2f(529, 258));
window.draw(drawObj);
which produces:
If I modify the middle point so it is further out (257 -> 275), it becomes more "normal":
I'm wondering what the problem is here, or what can be done about this.