I’d like to make a Character Controller(PxCapsuleController) inactive or suspended temporarily.
In situations like where a character died but going to be respowned in a minute or reuse CCTs to avoid create/delete them to prevent from memory/resource fragmentation when many same spec characters would come and go.
It seems no API to add/remove CCT in a scene.
One way to do it I come up with is get the PxRigidDynamic from the CCT then change the shape’s eSIMULATION_SHAPE to activate/deactivate the CCT, which should be undefined behaviour though.
Is there any good way to do it?