The red cube uses a trimesh collider.

The green cube uses a convexHull collider.

The ground plane cube uses a trimesh collider.

Source code