MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / removeItemAtInArray

Method removeItemAtInArray

src/systems/CollisionDetectionSystem.cpp:1665–1670  ·  view source on GitHub ↗

Remove an element in an array (and replace it by the last one in the array)

Source from the content-addressed store, hash-verified

1663
1664// Remove an element in an array (and replace it by the last one in the array)
1665void CollisionDetectionSystem::removeItemAtInArray(uint array[], uint8 index, uint8& arraySize) const {
1666 assert(index < arraySize);
1667 assert(arraySize > 0);
1668 array[index] = array[arraySize - 1];
1669 arraySize--;
1670}
1671
1672// Remove the duplicated contact points in a given contact manifold
1673void CollisionDetectionSystem::removeDuplicatedContactPointsInManifold(ContactManifoldInfo& manifold,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected