Closed pkusilence closed 1 year ago
Last 4 days I have been debugging this problem but did not find any key clue. What I found are :
The problem is solved, after replacing the codes of interactions by version 3.4.2 (orginal is 3.4.0). Differences are below:
Glad to hear this.
Yes, 3.4.0 is quite old by now and it is likely that this is not the only bug that got fixed in more recent versions.
Using PhysX 3.4.0 , we found that the exactly same two shapes can generate two contact modification event (both not in CCD), in one timestep. Moreover, the two collision modification event has the mContactReportStamp (which is PX_INVALID_U32, might because contact report buffer is initialiezed later ), but only once the contact will be report in "onContact" callback. At the beginning of the game, only one event will be reported, and if the same collison reported twice, all of the event is reported twice. Both actors are CCD-enabled, but all of the duplicate events are not CCD event.