MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / Pair

Method Pair

physx/source/simulationcontroller/src/ScIterators.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38///////////////////////////////////////////////////////////////////////////////
39
40Sc::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
52Sc::ContactIterator::Pair* Sc::ContactIterator::getNextPair()
53{

Callers

nothing calls this directly

Calls 1

getPxShapeMethod · 0.80

Tested by

no test coverage detected