Proposition and evaluation of a collision detection method for real time surgery simulation of opening a brain fissure (http://robomechjournal.springeropen.com ... 014-0006-7).
The problem is that i don't know which section of the Bullet code I should modify.
At the moment this is my initialization:
Code: Select all
void SoftBodyDemo::InitializePhysics() {
// create the collision configuration
m_pCollisionConfiguration = new btSoftBodyRigidBodyCollisionConfiguration();
// create the dispatcher
m_pDispatcher = new btCollisionDispatcher(m_pCollisionConfiguration);
// create the broadphase
m_pBroadphase = new btDbvtBroadphase();
// create the constraint solver
m_pSolver = new btSequentialImpulseConstraintSolver();
// create the softbody world
m_pWorld = new btSoftRigidDynamicsWorld(m_pDispatcher, m_pBroadphase, m_pSolver, m_pCollisionConfiguration);
// typecast the world and store it for future usage
m_pSoftBodyWorld = (btSoftRigidDynamicsWorld*)m_pWorld;
// initialize the world info for soft bodies
m_softBodyWorldInfo.m_dispatcher = m_pDispatcher;
m_softBodyWorldInfo.m_broadphase = m_pBroadphase;
m_softBodyWorldInfo.m_sparsesdf.Initialize();
CreateObjects();
}