Use drawTriangle instead of drawing three lines

This commit is contained in:
Chris Djali
2021-03-21 15:07:01 +00:00
committed by GitHub
parent 395e17c7bf
commit 6e2577ca59

View File

@@ -1294,9 +1294,7 @@ public:
btVector3 normalColor(1, 1, 0);
m_debugDrawer->drawLine(center, center + normal, normalColor);
}
m_debugDrawer->drawLine(wv0, wv1, m_color);
m_debugDrawer->drawLine(wv1, wv2, m_color);
m_debugDrawer->drawLine(wv2, wv0, m_color);
m_debugDrawer->drawTriangle(wv0, wv1, wv2, m_color, 1.0);
}
};