Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.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/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp
r2192 r2430 19 19 #include "btGjkEpaPenetrationDepthSolver.h" 20 20 21 #ifndef __SPU__22 //#define USE_ORIGINAL_GJK 123 #endif24 25 #ifdef USE_ORIGINAL_GJK26 #include "BulletCollision/NarrowPhaseCollision/btGjkEpa.h"27 #endif28 21 29 22 #include "BulletCollision/NarrowPhaseCollision/btGjkEpa2.h" … … 32 25 const btConvexShape* pConvexA, const btConvexShape* pConvexB, 33 26 const btTransform& transformA, const btTransform& transformB, 34 btVector3& v, bt Point3& wWitnessOnA, btPoint3& wWitnessOnB,27 btVector3& v, btVector3& wWitnessOnA, btVector3& wWitnessOnB, 35 28 class btIDebugDraw* debugDraw, btStackAlloc* stackAlloc ) 36 29 { … … 42 35 const btScalar radialmargin(btScalar(0.)); 43 36 44 //#define USE_ORIGINAL_GJK 145 #ifdef USE_ORIGINAL_GJK46 btGjkEpaSolver::sResults results;47 if(btGjkEpaSolver::Collide( pConvexA,transformA,48 pConvexB,transformB,49 radialmargin,stackAlloc,results))50 #else51 37 btVector3 guessVector(transformA.getOrigin()-transformB.getOrigin()); 52 38 btGjkEpaSolver2::sResults results; … … 55 41 guessVector,results)) 56 42 57 #endif58 43 { 59 44 // debugDraw->drawLine(results.witnesses[1],results.witnesses[1]+results.normal,btVector3(255,0,0));
Note: See TracChangeset
for help on using the changeset viewer.