mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-16 14:40:05 +00:00
removed obsolete code, added #ifdef to allow skipping of default registration of collision algorithm (avoid linking of unneeded code)
This commit is contained in:
parent
6dff5a218e
commit
df0c044228
@ -56,7 +56,10 @@ m_emptyCreateFunc(0)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//if you want to not link with the default collision algorithms, you can
|
||||||
|
//define BT_EXCLUDE_DEFAULT_COLLISIONALGORITHM_REGISTRATION
|
||||||
|
//in your Bullet library build system
|
||||||
|
#ifndef BT_EXCLUDE_DEFAULT_COLLISIONALGORITHM_REGISTRATION
|
||||||
|
|
||||||
btCollisionDispatcher::btCollisionDispatcher ():
|
btCollisionDispatcher::btCollisionDispatcher ():
|
||||||
m_useIslands(true),
|
m_useIslands(true),
|
||||||
@ -86,6 +89,9 @@ btCollisionDispatcher::btCollisionDispatcher ():
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif //BT_EXCLUDE_DEFAULT_COLLISIONALGORITHM_REGISTRATION
|
||||||
|
|
||||||
|
|
||||||
void btCollisionDispatcher::registerCollisionCreateFunc(int proxyType0, int proxyType1, btCollisionAlgorithmCreateFunc *createFunc)
|
void btCollisionDispatcher::registerCollisionCreateFunc(int proxyType0, int proxyType1, btCollisionAlgorithmCreateFunc *createFunc)
|
||||||
{
|
{
|
||||||
m_doubleDispatch[proxyType0][proxyType1] = createFunc;
|
m_doubleDispatch[proxyType0][proxyType1] = createFunc;
|
||||||
@ -164,6 +170,8 @@ btCollisionAlgorithm* btCollisionDispatcher::findAlgorithm(btCollisionObject* bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef BT_EXCLUDE_DEFAULT_COLLISIONALGORITHM_REGISTRATION
|
||||||
|
|
||||||
btCollisionAlgorithmCreateFunc* btCollisionDispatcher::internalFindCreateFunc(int proxyType0,int proxyType1)
|
btCollisionAlgorithmCreateFunc* btCollisionDispatcher::internalFindCreateFunc(int proxyType0,int proxyType1)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -197,6 +205,8 @@ btCollisionAlgorithmCreateFunc* btCollisionDispatcher::internalFindCreateFunc(in
|
|||||||
return m_emptyCreateFunc;
|
return m_emptyCreateFunc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif //BT_EXCLUDE_DEFAULT_COLLISIONALGORITHM_REGISTRATION
|
||||||
|
|
||||||
|
|
||||||
#ifndef USE_DISPATCH_REGISTRY_ARRAY
|
#ifndef USE_DISPATCH_REGISTRY_ARRAY
|
||||||
|
|
||||||
|
@ -43,23 +43,9 @@ subject to the following restrictions:
|
|||||||
#include "BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h"
|
#include "BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#if _MSC_VER >= 1310
|
|
||||||
//only use SIMD Hull code under Win32
|
|
||||||
#ifdef TEST_HULL
|
|
||||||
#define USE_HULL 1
|
|
||||||
#endif //TEST_HULL
|
|
||||||
#endif //_MSC_VER
|
|
||||||
#endif //WIN32
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_HULL
|
|
||||||
|
|
||||||
#include "NarrowPhaseCollision/Hull.h"
|
|
||||||
#include "NarrowPhaseCollision/HullContactCollector.h"
|
|
||||||
|
|
||||||
|
|
||||||
#endif //USE_HULL
|
|
||||||
|
|
||||||
|
|
||||||
btConvexConvexAlgorithm::CreateFunc::CreateFunc()
|
btConvexConvexAlgorithm::CreateFunc::CreateFunc()
|
||||||
|
@ -63,7 +63,7 @@ class btManifoldPoint
|
|||||||
float m_combinedRestitution;
|
float m_combinedRestitution;
|
||||||
|
|
||||||
|
|
||||||
void* m_userPersistentData;
|
mutable void* m_userPersistentData;
|
||||||
|
|
||||||
int m_lifeTime;//lifetime of the contactpoint in frames
|
int m_lifeTime;//lifetime of the contactpoint in frames
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user