fixed debugDraw colors (thanks pcOde http://continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=642 )
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
/// this demo will be modified to use the upcoming Bullet C-API, stay tuned.
|
||||||
|
|
||||||
/* Copyright (c) Mark J. Kilgard, 1994, 1997. */
|
/* Copyright (c) Mark J. Kilgard, 1994, 1997. */
|
||||||
|
|
||||||
/* This program is freely distributable without licensing fees
|
/* This program is freely distributable without licensing fees
|
||||||
|
|||||||
@@ -127,15 +127,15 @@ void btDiscreteDynamicsWorld::synchronizeMotionStates()
|
|||||||
switch(colObj->GetActivationState())
|
switch(colObj->GetActivationState())
|
||||||
{
|
{
|
||||||
case ACTIVE_TAG:
|
case ACTIVE_TAG:
|
||||||
color = btVector3(255.f,255.f,255.f);
|
color = btVector3(255.f,255.f,255.f); break;
|
||||||
case ISLAND_SLEEPING:
|
case ISLAND_SLEEPING:
|
||||||
color = btVector3(0.f,255.f,0.f);
|
color = btVector3(0.f,255.f,0.f);break;
|
||||||
case WANTS_DEACTIVATION:
|
case WANTS_DEACTIVATION:
|
||||||
color = btVector3(0.f,255.f,255.f);
|
color = btVector3(0.f,255.f,255.f);break;
|
||||||
case DISABLE_DEACTIVATION:
|
case DISABLE_DEACTIVATION:
|
||||||
color = btVector3(255.f,0.f,0.f);
|
color = btVector3(255.f,0.f,0.f);break;
|
||||||
case DISABLE_SIMULATION:
|
case DISABLE_SIMULATION:
|
||||||
color = btVector3(255.f,255.f,0.f);
|
color = btVector3(255.f,255.f,0.f);break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
color = btVector3(255.f,0.f,0.f);
|
color = btVector3(255.f,0.f,0.f);
|
||||||
|
|||||||
Reference in New Issue
Block a user