NVIDIAGameWorks / PhysX-3.4

NVIDIA PhysX SDK 3.4
https://www.nvidia.com/
2.35k stars 276 forks source link

Trigger shape crashes when it intersects the shape of the actor in PxAggregate #141

Open sunwtGitHub opened 2 years ago

sunwtGitHub commented 2 years ago

When I add multiple skeleton rigidbodies of ragdoll to a PxAggregate, it crashes when ragdoll enter the trigger range. In fact, whenever Aggregate contains a shape greater than 1 and intersects another trigger Shape, it will inevitably collapse.

Collapse the stack

code

sunwtGitHub commented 2 years ago

My volumeType value is 3. Is that correct?

VolumeType looks wrong

It seems that accessing the mDeletedPairs array in BpCacheData is out of bounds.

BpCacheData

BpCacheData2