This is more of a Bullet physics internal question rather than Urho, but if anyone knows the answer I appreciate it. I’ve already posted it on the Bullet support forum, but I haven’t got any answers yet.
What do you pass to the btCollisionWorld::convexSweepTest to get the “any hit” query?
I just want a fast and efficient way of determining if there is something there, I don’t care about what or where or any collision data, just if there are any physics bodies being overlapped by the sweep. I’m guessing you have to override the ConvexResultCallback somehow to get this result, but I cannot figure out how (the documentation on this topic is non existent). I was hoping an appropriate override would be included with the Bullet library (just like ClosestConvexResultCallback is), but no such luck.
And I don’t want to use the ClosestConvexResultCallback because it would be horribly inefficient for my purpose, as the query would have to get all overlapping bodies and order them by distance to the sweep origin and return the closest one. I just want the sweep algorithm to stop as soon as it finds something, anything.