2017-08-01 14:30:58 +02:00
|
|
|
#ifndef B3_CONFIG_H
|
|
|
|
#define B3_CONFIG_H
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
struct b3Config
|
2017-08-01 14:30:58 +02:00
|
|
|
{
|
2019-01-03 14:26:51 +01:00
|
|
|
int m_maxConvexBodies;
|
|
|
|
int m_maxConvexShapes;
|
|
|
|
int m_maxBroadphasePairs;
|
2017-08-01 14:30:58 +02:00
|
|
|
int m_maxContactCapacity;
|
|
|
|
int m_compoundPairCapacity;
|
|
|
|
|
|
|
|
int m_maxVerticesPerFace;
|
|
|
|
int m_maxFacesPerShape;
|
2019-01-03 14:26:51 +01:00
|
|
|
int m_maxConvexVertices;
|
2017-08-01 14:30:58 +02:00
|
|
|
int m_maxConvexIndices;
|
|
|
|
int m_maxConvexUniqueEdges;
|
2019-01-03 14:26:51 +01:00
|
|
|
|
|
|
|
int m_maxCompoundChildShapes;
|
|
|
|
|
2017-08-01 14:30:58 +02:00
|
|
|
int m_maxTriConvexPairCapacity;
|
|
|
|
|
|
|
|
b3Config()
|
2019-01-03 14:26:51 +01:00
|
|
|
: m_maxConvexBodies(128 * 1024),
|
|
|
|
m_maxVerticesPerFace(64),
|
|
|
|
m_maxFacesPerShape(12),
|
|
|
|
m_maxConvexVertices(8192),
|
|
|
|
m_maxConvexIndices(81920),
|
|
|
|
m_maxConvexUniqueEdges(8192),
|
|
|
|
m_maxCompoundChildShapes(8192),
|
|
|
|
m_maxTriConvexPairCapacity(256 * 1024)
|
2017-08-01 14:30:58 +02:00
|
|
|
{
|
|
|
|
m_maxConvexShapes = m_maxConvexBodies;
|
2019-01-03 14:26:51 +01:00
|
|
|
m_maxBroadphasePairs = 16 * m_maxConvexBodies;
|
2017-08-01 14:30:58 +02:00
|
|
|
m_maxContactCapacity = m_maxBroadphasePairs;
|
2019-01-03 14:26:51 +01:00
|
|
|
m_compoundPairCapacity = 1024 * 1024;
|
2017-08-01 14:30:58 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
#endif //B3_CONFIG_H
|