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
|
|
@ -126,9 +126,9 @@ typedef struct b3Contact
|
|||
// Back index into b3World::contacts
|
||||
int contactId;
|
||||
|
||||
// These are transient and cached for improved performance. B3_NULL_INDEX for static bodies.
|
||||
int bodySimIndexA;
|
||||
int bodySimIndexB;
|
||||
// Encoded body sim indices to avoid a cache miss accessing the body in the narrow phase.
|
||||
int encodedBodySimA;
|
||||
int encodedBodySimB;
|
||||
|
||||
// b3ContactFlags
|
||||
uint32_t flags;
|
||||
|
|
|
|||
Loading…
Reference in a new issue