| 38 | /////////////////////////////////////////////////////////////////////////////// |
| 39 | |
| 40 | Sc::ContactIterator::Pair::Pair(const void*& contactPatches, const void*& contactPoints, PxU32 /*contactDataSize*/, const PxReal*& forces, PxU32 numContacts, PxU32 numPatches, |
| 41 | ShapeSim& shape0, ShapeSim& shape1) |
| 42 | : mIndex(0) |
| 43 | , mNumContacts(numContacts) |
| 44 | , mIter(reinterpret_cast<const PxU8*>(contactPatches), reinterpret_cast<const PxU8*>(contactPoints), reinterpret_cast<const PxU32*>(forces + numContacts), numPatches, numContacts) |
| 45 | , mForces(forces) |
| 46 | { |
| 47 | mCurrentContact.shape0 = shape0.getPxShape(); |
| 48 | mCurrentContact.shape1 = shape1.getPxShape(); |
| 49 | mCurrentContact.normalForceAvailable = (forces != NULL); |
| 50 | } |
| 51 | |
| 52 | Sc::ContactIterator::Pair* Sc::ContactIterator::getNextPair() |
| 53 | { |
nothing calls this directly
no test coverage detected