I have a tool that explores a static world searching for clear paths, and I'm currently using Sphere and SweptSphere tests. For compatibility issues with another tool I need to switch the tests to use boxes instead of spheres, and I am stuck since I'm pretty new to Bullet.
- For Sphere I'm currently using:
btBvhTriangleMeshShape::processAllTriangles(btTriangleCallback* callback ...)
Where the callback is implemented using the SphereTriangleDetector. - For SweptSphere I'm currently using:
btCollisionWorld::convexSweepTest(const btConvexShape* castShape, ...)
With btSphereShape as shape.
- How can I implement the box vs triangle test?
- I assume just changing the shape to box will work for the swept box, right?
- If there's a better way to do it?
Thanks,
Warchief.