Disable one physicsImposter

I would like to disable one specific mesh.physicsImposter temporarily and re-enable it later.
Is this possible?
I know I could do: mesh.physicsImposter.dispose()

But then re-enabling is not possible.

Adding @RaananW and @Cedric for physx

To completely disable an impostor will require to dispose it and re-enable it when you need it. If you want it to stop its current physics interactions you can set it to sleep (impostor.sleep()), but that depends on the use case.

sleep() didn’t work for me.
But I found that it can be done with the collisionFilterMask:

1 Like