Function physx_sys::PxSceneQueryExt_sweepAny
source · pub unsafe extern "C" fn PxSceneQueryExt_sweepAny(
scene: *const PxScene,
geometry: *const PxGeometry,
pose: *const PxTransform,
unitDir: *const PxVec3,
distance: f32,
queryFlags: PxHitFlags,
hit: *mut PxQueryHit,
filterData: *const PxQueryFilterData,
filterCall: *mut PxQueryFilterCallback,
cache: *const PxQueryCache,
inflation: f32
) -> bool
Expand description
Sweep returning any blocking hit, not necessarily the closest.
Returns whether any rigid actor is hit along the sweep path.
If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag.
True if a blocking hit was found.