Sweep queries are just like the raycast queries, but the only difference is that sweep queries cast a shape or you can say sweep a shape instead of a ray. As with raycast, in PhysX the
PxScene::sweep() function is used to perform sweep queries and can be used in many different modes; they are as follows:
PxSweepBuffer bufand a default constructor
PxSweepBuffer buf(PxSweepBuffer, PxU32)
The geometry required by the sweep function can be a box, sphere, capsule, or convex.
sweep function sweeps all of the specified geometry objects through space, and finds all of the rigid actors that get hit during the sweep. Each successful collision between a sweep ...