41 #ifdef DEBUG_PERSISTENCY
43 void btPersistentManifold::DebugPersistency()
49 printf(
"m_pointCache[%d].m_userPersistentData = %x\n",i,
m_pointCache[i].m_userPersistentData);
52 #endif //DEBUG_PERSISTENCY
60 #ifdef DEBUG_PERSISTENCY
69 printf(
"error in clearUserCache\n");
73 #endif //DEBUG_PERSISTENCY
81 #ifdef DEBUG_PERSISTENCY
114 int maxPenetrationIndex = -1;
115 #define KEEP_DEEPEST_POINT 1
116 #ifdef KEEP_DEEPEST_POINT
118 for (
int i=0;i<4;i++)
122 maxPenetrationIndex = i;
126 #endif //KEEP_DEEPEST_POINT
132 if (maxPenetrationIndex != 0)
139 if (maxPenetrationIndex != 1)
147 if (maxPenetrationIndex != 2)
155 if (maxPenetrationIndex != 3)
165 if(maxPenetrationIndex != 0) {
169 if(maxPenetrationIndex != 1) {
173 if(maxPenetrationIndex != 2) {
177 if(maxPenetrationIndex != 3) {
192 int nearestPoint = -1;
193 for(
int i = 0; i <
size; i++ )
199 if( distToManiPoint < shortestDist )
201 shortestDist = distToManiPoint;
218 #if MANIFOLD_CACHE_SIZE >= 4
250 #ifdef DEBUG_PERSISTENCY
251 printf(
"refreshContactPoints posA = (%f,%f,%f) posB = (%f,%f,%f)\n",
258 #endif //DEBUG_PERSISTENCY
271 btVector3 projectedDifference,projectedPoint;
285 distance2d = projectedDifference.
dot(projectedDifference);
293 (*gContactProcessedCallback)(manifoldPoint,(
void*)
m_body0,(
void*)
m_body1);
297 #ifdef DEBUG_PERSISTENCY