Why scene->overlap() does not return face indices?

I would like to get the actors and faces indices intersecting a convex geometry, I use the following code to overlap a convex mesh over a scene:

        const PxU32 bufferSize = 256;        // [in] size of 'hitBuffer'
        PxOverlapHit hitBuffer[bufferSize];  // [out] User provided buffer for results
        PxOverlapBuffer hits(hitBuffer, bufferSize);
        PxQueryFilterData QueryFilterData(PxQueryFlag::eSTATIC | PxQueryFlag::eDYNAMIC);

        bool status = scene->overlap(geometry, pose, hits, QueryFilterData);

It returns hit results with actors, but all face indices equal to -1. Why?

I’m having the same issue with PhysX 4.


Please post questions around PhysX 4.0 or later on GitHub here:



NVIDIA PhysX SDK. Contribute to NVIDIAGameWorks/PhysX development by creating an account on GitHub.

and please post questions around PhysX 3.4 and older on GitHub here:



NVIDIA PhysX SDK 3.4. Contribute to NVIDIAGameWorks/PhysX-3.4 development by creating an account on GitHub.

We are not planning on closing this forum right away, but we would like to encourage people who have questions or problems regarding PhysX to consider posting on GitHub.