Remove an element in an array (and replace it by the last one in the array)
| 1663 | |
| 1664 | // Remove an element in an array (and replace it by the last one in the array) |
| 1665 | void 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 |
| 1673 | void CollisionDetectionSystem::removeDuplicatedContactPointsInManifold(ContactManifoldInfo& manifold, |
nothing calls this directly
no outgoing calls
no test coverage detected