Best way to detect collision between rotated boxes?

I am trying to detect whether skyblue box is containing tomato box

When I don’t rotate mesh detection works well. However, collision detection seems to be not working when I rotate mesh because box3 does not rotate.

Is there a way to make box3 rotate?

If there is no way to rotate box3 then what would be the best method to tell that the 2 meshes below do not contain each other.

code sandbox link: cube-1-contain-cube-2 - CodeSandbox

The oriented bounding box class OBB could be useful for this use case.

Notice that the class is part of the examples so you need an additional import in your app. I suggest you study the official demo for more information.

Thanks for the fast response!