pub unsafe extern "C" fn phys_PxCreateBVH(
    desc: *const PxBVHDesc,
    insertionCallback: *mut PxInsertionCallback
) -> *mut PxBVH
Expand description

Cooks and creates a bounding volume hierarchy without going through a stream.

This method does the same as cookBVH, but the produced BVH is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline.

PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback().

PxBVH pointer on success