I am using sweep scene query to check an attack is whether hitted, and I want to display damage effect in the position of the contact point. It works well expect the case of initial overlap.
Using PxHitFlag::eMTD can generate the initial overlap hit, and the “position” result is a point on the sweep geometry object. But to display a damage effect I need the position of a point on the “hitted” geometry object(better be closest to the center of the sweep geometry object).
It can be sloved by an overlap query before the sweep query but I wonder if there is some better method to do it smarter.
Thanks for advise.