Sync body flags (#7)
- Fixed mesh point culling for vertically stacked points - Fixed two point capsule vs capsule normal - Fixed bug where body flags can go out of sync - Added tests - Updated benchmarks
This commit is contained in:
parent
758dc665dd
commit
79cc160275
39 changed files with 1686 additions and 931 deletions
|
|
@ -570,7 +570,7 @@ public:
|
|||
bodyDef.type = b3_dynamicBody;
|
||||
|
||||
b3ShapeDef shapeDef = b3DefaultShapeDef();
|
||||
shapeDef.baseMaterial.rollingResistance = 0.1f;
|
||||
shapeDef.baseMaterial.rollingResistance = m_shapeType == e_capsule ? 0.4f : 0.1f;
|
||||
|
||||
// Don't allow shapes to collide with each other. This
|
||||
// makes isolating failures easier.
|
||||
|
|
@ -743,7 +743,8 @@ public:
|
|||
m_stepCount += n;
|
||||
}
|
||||
|
||||
if ( m_stepCount > 1000 )
|
||||
int maxSteps = m_shapeType == e_capsule ? 3000 : 1000;
|
||||
if ( m_stepCount > maxSteps )
|
||||
{
|
||||
m_context->pause = true;
|
||||
m_failure = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue