added InternalEdgeDemo and fixes for btInternalEdgeUtility

This commit is contained in:
erwin.coumans
2010-01-30 03:48:57 +00:00
parent 8616ea07d8
commit e311597a7b
13 changed files with 903 additions and 53 deletions

View File

@@ -938,6 +938,16 @@ public:
wv0 = m_worldTrans*triangle[0];
wv1 = m_worldTrans*triangle[1];
wv2 = m_worldTrans*triangle[2];
btVector3 center = (wv0+wv1+wv2)*btScalar(1./3.);
btVector3 normal = (wv1-wv0).cross(wv2-wv0);
normal.normalize();
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);