I'd recommend looking at: https://github.com/ros/geometry2/blob/7ea64d25a0631fe91bd277e0d9195f18cc437151/tf2/src/cache.cpp#L176-L196 which uses the internal fork of the Bullet Linear Math library.
I'd recommend you implement your own version using the pure bullet API.
↧