PxContactPair's contact data not available (PhysX 3.2.4) [SOLVED]

Hello
On contact notification, I need to have the average position of contact :

virtual void onContact(const PxContactPairHeader &  pairHeader,const PxContactPair * pairs,PxU32 nbPairs)
{
	for (PxU32 i=0;i<nbPairs;i++)
	{
		PxVec3 position=getAverageContactPosition(pairs[i]);
		//...

	}
}

PxVec3 getAverageContactPosition(const PxContactPair & pairs)
{
	PxContactPairPoint * contacts=new PxContactPairPoint[pairs.contactCount];
	pairs.extractContacts(contacts,pairs.contactCount*sizeof(PxContactPairPoint));

	PxVec3 acc=PxVec3(static_cast<PxReal>(0.0f),static_cast<PxReal>(0.0f),static_cast<PxReal>(0.0f));

	for (PxU16 i=0;i<pairs.contactCount;i++)
		acc+=contacts[i].position;

	delete [] contacts;

	return acc/pairs.contactCount;
}

…but pairs.contactCount is always 0 and pairs.contactStream is always NULL.
Why ?

Hi,
Are you running a CHECKED build? Are there any warnings on the error stream? And what is the value of nbPairs?
Thanks,
Mike

Hello Mike
Thank you for your answer
In fact this is just a stupid mistake, I forgot to raise PxPairFlag::eNOTIFY_CONTACT_POINTS in the filter shader …