PxBVH_cull

Function PxBVH_cull 

Source
pub unsafe extern "C" fn PxBVH_cull(
    self_: *const PxBVH,
    nbPlanes: u32,
    planes: *const PxPlane,
    cb: *mut PxBVHOverlapCallback,
    queryFlags: PxGeometryQueryFlags,
) -> bool
Expand description

Frustum culling test against a BVH.

This is similar in spirit to an overlap query using a convex object around the frustum. However this specialized query has better performance, and can support more than the 6 planes of a frustum, which can be useful in portal-based engines.

On the other hand this test only returns a conservative number of bounds, i.e. some of the returned bounds may actually be outside the frustum volume, close to it but not touching it. This is usually an ok performance trade-off when the function is used for view-frustum culling.

false if query has been aborted