I am trying to detect whether
skyblue box is containing
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