Hull sharing (#13)
Save memory when there are many duplicate hulls. Can improve performance in some cases. For consistency with b3MeshData, b3Hull is renamed to b3HullData.
This commit is contained in:
parent
d8fbeb444e
commit
a252f03b19
66 changed files with 881 additions and 549 deletions
|
|
@ -195,7 +195,7 @@ static void b3SensorTask( int startIndex, int endIndex, int workerIndex, void* c
|
|||
b3Shape* sensorShape = b3Array_Get( world->shapes, sensor->shapeId );
|
||||
|
||||
// Swap overlap arrays
|
||||
b3ArrayC( b3Visitor ) temp = sensor->overlaps1;
|
||||
b3Array( b3Visitor ) temp = sensor->overlaps1;
|
||||
sensor->overlaps1 = sensor->overlaps2;
|
||||
sensor->overlaps2 = temp;
|
||||
b3Array_Clear( sensor->overlaps2 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue