Page 1 of 1

OgreBulletCollisions::Debug drawer giving wierd error

Posted: Tue Oct 18, 2011 10:11 pm
by JohnBoyMan
Hello. I am trying to get the debug drawer working.
i do this to set it up.

Code: Select all

//header
  OgreBulletDynamics::DynamicsWorld *mWorld;   // OgreBullet World
  OgreBulletCollisions::DebugDrawer *debugDrawer;
//header

//cpp
    mWorld = new OgreBulletDynamics::DynamicsWorld(mSceneMgr, bounds, gravityVector);
    debugDrawer = new OgreBulletCollisions::DebugDrawer();
    debugDrawer->setDrawWireframe(true);   
    mWorld->setShowDebugShapes(true);  
//cpp

I get this result.
and error in my ms visual compiler that says
2 IntelliSense: argument of type "OgreBulletCollisions::DebugDrawer *" is incompatible with parameter of type "btIDebugDraw *" c:\users\john\documents\visual studio 2010\projects\game\game\baseapplication.cpp 1082 34 game


I think it might have to do with ogre bullet collisions. When i try to use the namespace or something like this this happens.

OgreBulletCollisions::BoxCollisionShape *sceneBoxShape = new OgreBulletCollisions::BoxCollisionShape(btVector3(6,6,6));

it underlines OgreBulletCollisions:: in red and says incompatible type not allowed. I have the namespace made and all the libs in place.

This shouldn't happen. thanks