add some micro-sleep to prevent 100% CPU/memory bus hogging, preventing the graphics thread from making progress.

debug draw color black for contact normal
move debug draw option for constraint frames into 'k' key.
This commit is contained in:
YunfeiBai
2016-08-19 13:58:53 -07:00
parent 94161246d9
commit 6751648bce
3 changed files with 17 additions and 4 deletions

View File

@@ -85,8 +85,8 @@ public:
virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color)
{
drawLine(PointOnB,PointOnB+normalOnB*distance,color);
btVector3 red(0.3, 1., 0.3);
drawLine(PointOnB, PointOnB + normalOnB*0.01, red);
btVector3 ncolor(0, 0, 0);
drawLine(PointOnB, PointOnB + normalOnB*0.01, ncolor);
}