Closed ghost closed 7 months ago
Took me a moment to figure it out :smile:
In order to get the contact points you need to set a second flag eNOTIFY_CONTACT_POINTS
:
var tmpFilterData = new PhysX.PxFilterData(1, 1, PhysX.PxPairFlagEnum.eNOTIFY_TOUCH_FOUND | PhysX.PxPairFlagEnum.eNOTIFY_CONTACT_POINTS, 0);
Don't know why this isn't described more clearly in the PhysX docs...
You had to dig deep, no way i could ever find that. The best part is that together with NOTIFY_THRESHOLD_FORCE_FOUND you can bring the number of calls really low. Man, you are the best, thanks for your patience and giving me a hand in all this.
Greetings, fabmax.
I have read through #7 and was able to setup the onContact callback and get the involved shapes, but wasn't able to get any contacts from the callback, it means that
pair.extractContacts
always returns 0. Again here is a minimal reproducible example that is 1 to 1 from what i read in the PhysX docs.As always, thank you so much for your attention.