0

I'm trying to create multiple physx scenes with same colliders, and i want to use shared shapes to minimize the memory usage and mesh baking time at creation.

I created some shared PxShape (with isExclusive=false in PxPhysics.createShape), after that I need to create actors with these shapes for different scenes from different threads, it seems that the only data shared among threads are these 'shared shapes', is it thread safe to call PxRigidActor.attachShape for different scene actors?

apparently lock before creation of every creation of the actor is ok, I'm wondering is it neccesery?

feilian118
  • 15
  • 2

0 Answers0