Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Oct 18, 2011 10:11 pm 
Offline

Joined: Tue Jun 28, 2011 4:11 am
Posts: 14
Hello. I am trying to get the debug drawer working.
i do this to set it up.

Code:
//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
Quote:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group