PxSDFDesc PhysxNode::setupSDFDesc() { PxSDFDesc sdfDesc; sdfDesc.spacing = 0.01f; // Adjust as needed sdfDesc.subgridSize = 0; // Adjust as needed sdfDesc.bitsPerSubgridPixel = PxSdfBitsPerSubgridPixel::e8_BIT_PER_PIXEL; // Adjust as needed sdfDesc.numThreadsForSdfConstruction = 20; // PxSDFBuilder* sdfBuilder = gPhysics->create; // if (true) { // // If sdfBuilder is NULL, the sdf will get cooked on the CPU using the number of threads specified above // sdfDesc.sdfBuilder = PxGetPhysicsGpu()->createSDFBuilder(gCudaContextManager); // } return sdfDesc; }