pub unsafe extern "C" fn PxSceneQueryExt_raycastMultiple(
    scene: *const PxScene,
    origin: *const PxVec3,
    unitDir: *const PxVec3,
    distance: f32,
    outputFlags: PxHitFlags,
    hitBuffer: *mut PxRaycastHit,
    hitBufferSize: u32,
    blockingHit: *mut bool,
    filterData: *const PxQueryFilterData,
    filterCall: *mut PxQueryFilterCallback,
    cache: *const PxQueryCache
) -> i32
Expand description

Raycast returning multiple results.

Find all rigid actors that get hit along the ray. Each result contains data as specified by the outputFlags field.

Touching hits are not ordered.

Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms.

Number of hits in the buffer, or -1 if the buffer overflowed.