Changeset 1972 for code/branches/physics/src/bullet/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp
- Timestamp:
- Oct 20, 2008, 5:40:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp
r1963 r1972 30 30 mem = btAlignedAlloc(sizeof(btSoftSoftCollisionAlgorithm::CreateFunc),16); 31 31 m_softSoftCreateFunc = new(mem) btSoftSoftCollisionAlgorithm::CreateFunc; 32 32 33 33 mem = btAlignedAlloc(sizeof(btSoftRigidCollisionAlgorithm::CreateFunc),16); 34 34 m_softRigidConvexCreateFunc = new(mem) btSoftRigidCollisionAlgorithm::CreateFunc; 35 35 36 36 mem = btAlignedAlloc(sizeof(btSoftRigidCollisionAlgorithm::CreateFunc),16); 37 37 m_swappedSoftRigidConvexCreateFunc = new(mem) btSoftRigidCollisionAlgorithm::CreateFunc; … … 41 41 mem = btAlignedAlloc(sizeof(btSoftBodyConcaveCollisionAlgorithm::CreateFunc),16); 42 42 m_softRigidConcaveCreateFunc = new(mem) btSoftBodyConcaveCollisionAlgorithm::CreateFunc; 43 43 44 44 mem = btAlignedAlloc(sizeof(btSoftBodyConcaveCollisionAlgorithm::CreateFunc),16); 45 45 m_swappedSoftRigidConcaveCreateFunc = new(mem) btSoftBodyConcaveCollisionAlgorithm::SwappedCreateFunc; … … 48 48 49 49 //replace pool by a new one, with potential larger size 50 50 51 51 if (m_ownsCollisionAlgorithmPool && m_collisionAlgorithmPool) 52 52 { 53 53 int curElemSize = m_collisionAlgorithmPool->getElementSize(); 54 54 ///calculate maximum element size, big enough to fit any collision algorithm in the memory pool 55 56 55 56 57 57 int maxSize0 = sizeof(btSoftSoftCollisionAlgorithm); 58 58 int maxSize1 = sizeof(btSoftRigidCollisionAlgorithm); … … 93 93 #endif 94 94 } 95 95 96 96 ///creation of soft-soft and soft-rigid, and otherwise fallback to base class implementation 97 97 btCollisionAlgorithmCreateFunc* btSoftBodyRigidBodyCollisionConfiguration::getCollisionAlgorithmCreateFunc(int proxyType0,int proxyType1)
Note: See TracChangeset
for help on using the changeset viewer.