Optimizations (#161)
- cache body sim indices and split out fat aabb - deferred restitution - the manifold point normal velocity is only computed for restitution or hit events, otherwise it is zero
This commit is contained in:
parent
f555ee4208
commit
9e5a4cde86
49 changed files with 3395 additions and 864 deletions
|
|
@ -210,6 +210,8 @@ void b3CreateContact( b3World* world, b3Shape* shapeA, b3Shape* shapeB, int chil
|
|||
contact->shapeIdA = shapeIdA;
|
||||
contact->shapeIdB = shapeIdB;
|
||||
contact->childIndex = childIndex;
|
||||
contact->encodedBodySimA = b3EncodeBodySimIndex( bodyA );
|
||||
contact->encodedBodySimB = b3EncodeBodySimIndex( bodyB );
|
||||
|
||||
// Both bodies must enable recycling
|
||||
if ( ( bodyA->flags & b3_bodyEnableContactRecycling ) != 0 && ( bodyB->flags & b3_bodyEnableContactRecycling ) != 0 )
|
||||
|
|
|
|||
Loading…
Reference in a new issue