PxCreateBVH

Defined in include/cooking/PxCooking.h

physx::PxBVH *PxCreateBVH(const physx::PxBVHDesc &desc, physx::PxInsertionCallback &insertionCallback)

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

See also

PxCookBVH() PxInsertionCallback

Note

This method does the same as PxCookBVH, 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.

Note

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

Parameters
  • desc[in] The BVH descriptor.

  • insertionCallback[in] The insertion interface.

Returns

PxBVH pointer on success