Collision with Statics in 3.3.2

Hi,

I have a code in 3.3.0 that is running. I have a Static Actor (Triangle Mesh) and a Sphere (Kinematic Actor), and I can know if there is a collision between them.

My code in collision is:

sceneDesc.filterShader = filter; //Creates default collision filter shader for the scene
sceneDesc.flags = PxSceneFlag::eENABLE_KINEMATIC_STATIC_PAIRS;
sceneDesc.flags = PxSceneFlag::eENABLE_KINEMATIC_PAIRS;

Filter function is:

pairFlags |= PxPairFlag::eNOTIFY_TOUCH_FOUND; // For all

And oncontact() is:

std::cout<<“Collision” << std::endl;

Very simple.

This code is running without problems in 3.3.0.
However, there is not collision in 3.3.2

Is something different? I don’t find where is the problem

Thank you

Could you try this in the 3.3.3 on Github? I’m not aware of any changes that should have caused this deliberately.

I didn’t try it, but I see that you need to activate eDETECT_DISCRETE_CONTACT in the pairs to detect collisions. In 3.3.0 was not necessary.