OgreBulletCollisions::Debug drawer giving wierd error

Please don't post Bullet support questions here, use the above forums instead.
Post Reply
Posts: 14
Joined: Tue Jun 28, 2011 4:11 am

OgreBulletCollisions::Debug drawer giving wierd error

Post by JohnBoyMan » Tue Oct 18, 2011 10:11 pm

Hello. I am trying to get the debug drawer working.
i do this to set it up.

Code: Select all

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

    mWorld = new OgreBulletDynamics::DynamicsWorld(mSceneMgr, bounds, gravityVector);
    debugDrawer = new OgreBulletCollisions::DebugDrawer();

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

Post Reply