I'm able to get the width, length and height by using D3DXComputeBoundingBox()
float width = max.x - min.x; float length = max.y - min.y; float height = max.z - min.z;
The problem is that I'm not sure how can I pass the values to btBoxShape, I tried:
btBoxShape* box = new btBoxShape(btVector3(width / 2.0f, length / 2.0f, height / 2.0f));
But, I'm not getting a box with the same size.