Topper
09-11-2010 09:47:50
Hi,
ist there a way to show the debug container of static shapes? I can only see the container of non static shapes.
ist there a way to show the debug container of static shapes? I can only see the container of non static shapes.
mDebugDrawer = new OgreBulletCollisions::DebugDrawer();
mDebugDrawer->setDebugMode(OgreBulletCollisions::DebugDrawer::DBG_MAX_DEBUG_DRAW_MODE);
mDebugDrawer->setDrawAabb(true);
mDebugDrawer->setDrawWireframe(true);
mDebugDrawer->setDrawContactPoints(true);
mDebugDrawer->setDrawFeaturesText(true);
mWorld->setDebugDrawer(mDebugDrawer);
mWorld->setShowDebugShapes(true);
Ogre::SceneNode *node = mgr->getRootSceneNode()->createChildSceneNode("debugDrawer", Ogre::Vector3::ZERO);
node->attachObject(static_cast <Ogre::SimpleRenderable *> (mDebugDrawer));