The codebase uses in several places the inverse inertia tensor. That tensor is in local space. The integration and impulse steps assume that angular velocity, angular acceleration and torques are in world space. Therefore the inverse inertia tensor should be converted to world space as well.