pub unsafe extern "C" fn PxBatchQueryExt_raycast_mut(
    self_: *mut PxBatchQueryExt,
    origin: *const PxVec3,
    unitDir: *const PxVec3,
    distance: f32,
    maxNbTouches: u16,
    hitFlags: PxHitFlags,
    filterData: *const PxQueryFilterData,
    cache: *const PxQueryCache
) -> *mut PxRaycastBuffer
Expand description

Performs a raycast against objects in the scene.

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.

This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior).

Returns a PxRaycastBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.