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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user