MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / createPhysicsDebugDrawer

Method createPhysicsDebugDrawer

examples/ExampleBrowser/OpenGLGuiHelper.cpp:1132–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1130 }
1131}
1132void OpenGLGuiHelper::createPhysicsDebugDrawer(btDiscreteDynamicsWorld* rbWorld)
1133{
1134 btAssert(rbWorld);
1135 if (m_data->m_debugDraw)
1136 {
1137 delete m_data->m_debugDraw;
1138 m_data->m_debugDraw = 0;
1139 }
1140
1141 m_data->m_debugDraw = new MyDebugDrawer(m_data->m_glApp);
1142 rbWorld->setDebugDrawer(m_data->m_debugDraw);
1143
1144 m_data->m_debugDraw->setDebugMode(
1145 btIDebugDraw::DBG_DrawWireframe + btIDebugDraw::DBG_DrawAabb
1146 //btIDebugDraw::DBG_DrawContactPoints
1147 );
1148}
1149
1150struct Common2dCanvasInterface* OpenGLGuiHelper::get2dCanvasInterface()
1151{

Callers 13

initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45

Calls 2

setDebugDrawerMethod · 0.80
setDebugModeMethod · 0.80

Tested by

no test coverage detected