PxCreateBVH

Defined in include/cooking/PxCooking.h

inline physx::PxBVH *PxCreateBVH(const physx::PxBVHDesc &desc)

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

Convenience function for standalone objects.

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.

Parameters

desc[in] The BVH descriptor.

Returns

PxBVH pointer on success