I got this problem resolved, but I have another problem that I have been trying to fix since yesterday.
I'm trying to create btBoxShape from the box information (boxWidth, boxHeight, boxDepth), but I see a larger box a result.
float boxWidth = (vecMax.x - vecMin.x); float boxHeight = (vecMax.y - vecMin.y); float boxDepth = (vecMax.z - vecMin.z); btVector3 boxHalfExtents(boxWidth, boxHeight, boxDepth); btBoxShape* boxShape = new btBoxShape(boxHalfExtents);