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
|
|
@ -37,7 +37,6 @@ typedef struct b3Shape
|
|||
float aabbMargin;
|
||||
|
||||
b3AABB aabb;
|
||||
b3AABB fatAABB;
|
||||
b3Vec3 localCentroid;
|
||||
|
||||
int materialCount;
|
||||
|
|
@ -74,7 +73,7 @@ static inline b3SurfaceMaterial* b3GetShapeMaterials( const b3Shape* shape )
|
|||
return shape->materials != NULL ? shape->materials : (b3SurfaceMaterial*)&shape->material;
|
||||
}
|
||||
|
||||
void b3CreateShapeProxy( b3Shape* shape, b3BroadPhase* bp, b3BodyType type, b3WorldTransform transform, bool forcePairCreation );
|
||||
void b3CreateShapeProxy( b3World* world, b3Shape* shape, b3BodyType type, b3WorldTransform transform, bool forcePairCreation );
|
||||
void b3DestroyShapeProxy( b3Shape* shape, b3BroadPhase* bp );
|
||||
|
||||
void b3DestroyShapeAllocations( b3World* world, b3Shape* shape );
|
||||
|
|
|
|||
Loading…
Reference in a new issue