Function physx_sys::PxSceneQuerySystemBase_sweep
source · pub unsafe extern "C" fn PxSceneQuerySystemBase_sweep(
self_: *const PxSceneQuerySystemBase,
geometry: *const PxGeometry,
pose: *const PxTransform,
unitDir: *const PxVec3,
distance: f32,
hitCall: *mut PxSweepCallback,
hitFlags: PxHitFlags,
filterData: *const PxQueryFilterData,
filterCall: *mut PxQueryFilterCallback,
cache: *const PxQueryCache,
inflation: f32,
queryFlags: PxGeometryQueryFlags
) -> bool
Expand description
Performs a sweep test against objects in the scene, returns results in a PxSweepBuffer object or via a custom user callback implementation inheriting from PxSweepCallback.
Touching hits are not ordered.
If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified.
True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.