Starting Out

bizack

13-11-2008 03:34:57

I see this has been discussed before, but I'm looking for the most basic example of using OgreBullet. I've read through the header files, searched the forums, etc, but the examples aren't that clear. Do I really need an OgreBulletApplication, OgreBulletGuiListener, OgreBulletInputListener, and OgreBulletListener class? These all seem to support the multi-project executable. I'm just looking for an example where I'd, say, define an Ogre Cube like:


entity = mSceneMgr->createEntity("MyBox", Ogre::SceneManager::PrefabType::PT_CUBE);
node1 = mSceneMgr->getRootSceneNode()->createChildSceneNode("BoxNode", Vector3(0.0, 5.0, 0.0));
node1->scale(0.1, 0.1, 0.1);
node1->attachObject(entity);


and apply some bullet physics properties to that cube. I'm completely lost as to how the scene manager in Ogre and the dynamics world in Bullet are interacting.

Thanks.