Also, just a quick aside; I was having issues with IBvhTriangleMeshShape*, so I fixed things up a bit (i.e. I could not create it with buildbvh set to true). So basically, a second constructor I have for IBvhTriangleMeshShape* looks something like this:
Code: Select all
btTriangleMeshShape * shape = new btTriangleMeshShape(getTriangleMesh(mesh), true, false);
Primarily though, I am looking for some help with getting realistic collisions to happen with my camera Thanks!
-RageD
P.S. I am currently trying something like this:
Code: Select all
IBoxShape * box = new IBoxShape(camera, 1.0, false);
IRigidBody * cam = world->addRigidBody(box);
cam->setGravity(core::vector3df(0,0,0));
box->setLocalScaling(camera->getScale(), ESP_VISUAL);
cam->setCollisionFlags(ECF_CHARACTER_OBJECT);
cam->activate(true);