pub unsafe extern "C" fn PxRigidBodyExt_linearSweepSingle(
    body: *mut PxRigidBody,
    scene: *mut PxScene,
    unitDir: *const PxVec3,
    distance: f32,
    outputFlags: PxHitFlags,
    closestHit: *mut PxSweepHit,
    shapeIndex: *mut u32,
    filterData: *const PxQueryFilterData,
    filterCall: *mut PxQueryFilterCallback,
    cache: *const PxQueryCache,
    inflation: f32
) -> bool
Expand description

Performs a linear sweep through space with the body’s geometry objects.

Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored.

If eTOUCH is returned from the filter callback, it will trigger an error and the hit will be discarded.

The function sweeps all shapes attached to a given rigid body through space and reports the nearest object in the scene which intersects any of of the shapes swept paths. Information about the closest intersection is written to a PxSweepHit structure.

True if a blocking hit was found.