Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
| Context not available. | |||||
| { | { | ||||
| for (int j=0;j<numContacts;j++) | for (int j=0;j<numContacts;j++) | ||||
| { | { | ||||
| btVector3 color(1,0,0); | btVector3 color(1,1,0); | ||||
| const btManifoldPoint& cp = manifold->getContactPoint(j); | const btManifoldPoint& cp = manifold->getContactPoint(j); | ||||
| m_debugDrawer->drawContactPoint(cp.m_positionWorldOnB, | m_debugDrawer->drawContactPoint(cp.m_positionWorldOnB, | ||||
| cp.m_normalWorldOnB, | cp.m_normalWorldOnB, | ||||
| Context not available. | |||||
| virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,float distance,int lifeTime,const btVector3& color) | virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,float distance,int lifeTime,const btVector3& color) | ||||
| { | { | ||||
| //not yet | drawLine(PointOnB, PointOnB + normalOnB, color); | ||||
| drawSphere(PointOnB, 0.1, color); | |||||
| } | } | ||||
| virtual void setDebugMode(int debugMode) | virtual void setDebugMode(int debugMode) | ||||
| Context not available. | |||||