Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp
- Timestamp:
- Dec 13, 2008, 11:45:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp
r2192 r2430 23 23 24 24 btSphereTriangleCollisionAlgorithm::btSphereTriangleCollisionAlgorithm(btPersistentManifold* mf,const btCollisionAlgorithmConstructionInfo& ci,btCollisionObject* col0,btCollisionObject* col1,bool swapped) 25 : bt CollisionAlgorithm(ci),25 : btActivatingCollisionAlgorithm(ci,col0,col1), 26 26 m_ownManifold(false), 27 27 m_manifoldPtr(mf), … … 57 57 /// report a contact. internally this will be kept persistent, and contact reduction is done 58 58 resultOut->setPersistentManifold(m_manifoldPtr); 59 SphereTriangleDetector detector(sphere,triangle );59 SphereTriangleDetector detector(sphere,triangle, m_manifoldPtr->getContactBreakingThreshold()); 60 60 61 61 btDiscreteCollisionDetectorInterface::ClosestPointInput input; 62 input.m_maximumDistanceSquared = btScalar(1e30);// todo: tighter bounds62 input.m_maximumDistanceSquared = btScalar(1e30);///@todo: tighter bounds 63 63 input.m_transformA = sphereObj->getWorldTransform(); 64 64 input.m_transformB = triObj->getWorldTransform();
Note: See TracChangeset
for help on using the changeset viewer.