IFMaster_2005
21-05-2008 23:33:10
Hello everyone, i'm trying to integrate OgreBullet in my current project, i'm just beggining with it, and i have some problems:
About te debug drawer, i initliasie it like this:
But i create a sphere shape and it doesn't appear viewed in wire frame, any suggestion?
I have another problem using OgreBullet, i prefer to use only collisions, but maybe in the future i use phsycs too, is for this i initialise the dynamic world.
In order to create a "collision mesh" is enaught to create a mesh, or i must create a rigid body too?
And... how i can ask for a collision between two shapes or rigid bodies?
Thanks a lot for your time and sorry about my poor english.
About te debug drawer, i initliasie it like this:
mWorld = new DynamicsWorld(mSceneMgr, bounds, gravityVector);
// add Debug info display tool
mDebugDrawer = new DebugDrawer();
mWorld->setDebugDrawer(mDebugDrawer);
mWorld->setShowDebugShapes(true);
mDebugDrawer->setDrawWireframe(true);
SceneNode *node = mSceneMgr->getRootSceneNode()->createChildSceneNode("debugDrawer", Vector3::ZERO);
node->attachObject(static_cast <SimpleRenderable *> (mDebugDrawer));But i create a sphere shape and it doesn't appear viewed in wire frame, any suggestion?
I have another problem using OgreBullet, i prefer to use only collisions, but maybe in the future i use phsycs too, is for this i initialise the dynamic world.
In order to create a "collision mesh" is enaught to create a mesh, or i must create a rigid body too?
And... how i can ask for a collision between two shapes or rigid bodies?
Thanks a lot for your time and sorry about my poor english.