Am I missing something? Any particular reason there's no way to reset the m_implicitShapeDimensions the same way the constructor does? Otherwise I propose adding:
Code: Select all
void btBoxShape::setHalfExtent( const btVector3& boxHalfExtents)
{
btVector3 margin(getMargin(),getMargin(),getMargin());
m_implicitShapeDimensions = (boxHalfExtents * m_localScaling) - margin;
}