Changeset 2908 for code/branches/questsystem5/src/bullet/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.h
- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/bullet/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.h
r2907 r2908 34 34 ///#define USE_SEPDISTANCE_UTIL2 1 35 35 36 ///The convexConvexAlgorithm collision algorithm implements time of impact, convex closest points and penetration depth calculations between two convex objects. 37 ///Multiple contact points are calculated by perturbing the orientation of the smallest object orthogonal to the separating normal. 38 ///This idea was described by Gino van den Bergen in this forum topic http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=4&t=288&p=888#p888 36 ///ConvexConvexAlgorithm collision algorithm implements time of impact, convex closest points and penetration depth calculations. 39 37 class btConvexConvexAlgorithm : public btActivatingCollisionAlgorithm 40 38 { … … 50 48 bool m_lowLevelOfDetail; 51 49 52 int m_numPerturbationIterations;53 int m_minimumPointsPerturbationThreshold;54 55 56 50 ///cache separating vector to speedup collision detection 57 51 … … 59 53 public: 60 54 61 btConvexConvexAlgorithm(btPersistentManifold* mf,const btCollisionAlgorithmConstructionInfo& ci,btCollisionObject* body0,btCollisionObject* body1, btSimplexSolverInterface* simplexSolver, btConvexPenetrationDepthSolver* pdSolver, int numPerturbationIterations, int minimumPointsPerturbationThreshold); 62 55 btConvexConvexAlgorithm(btPersistentManifold* mf,const btCollisionAlgorithmConstructionInfo& ci,btCollisionObject* body0,btCollisionObject* body1, btSimplexSolverInterface* simplexSolver, btConvexPenetrationDepthSolver* pdSolver); 63 56 64 57 virtual ~btConvexConvexAlgorithm(); … … 86 79 struct CreateFunc :public btCollisionAlgorithmCreateFunc 87 80 { 88 89 81 btConvexPenetrationDepthSolver* m_pdSolver; 90 82 btSimplexSolverInterface* m_simplexSolver; 91 int m_numPerturbationIterations; 92 int m_minimumPointsPerturbationThreshold; 93 83 94 84 CreateFunc(btSimplexSolverInterface* simplexSolver, btConvexPenetrationDepthSolver* pdSolver); 95 85 … … 99 89 { 100 90 void* mem = ci.m_dispatcher1->allocateCollisionAlgorithm(sizeof(btConvexConvexAlgorithm)); 101 return new(mem) btConvexConvexAlgorithm(ci.m_manifold,ci,body0,body1,m_simplexSolver,m_pdSolver ,m_numPerturbationIterations,m_minimumPointsPerturbationThreshold);91 return new(mem) btConvexConvexAlgorithm(ci.m_manifold,ci,body0,body1,m_simplexSolver,m_pdSolver); 102 92 } 103 93 };
Note: See TracChangeset
for help on using the changeset viewer.