Which Surface of Cube is Touch to plan ???

Hello ,

I have cube of different size on plane how to get which surface of cube touch the plane any idea

Assuming the cube is axis-aligned in local space, the normals of the six sides of the cube are transform.right, up, forward, -right, -up, and -forward. Take the dot product of each of these with the plane normal; the dot product with the least value (should be close to -1) will correspond to the face of the cube that is touching the plane. (Since the dot products corresponding to, for example, up and -up are negatives of each other, you can optionally compute only three dot products rather than six. Also, if the plane is itself axis-aligned, the test reduces to a simple coordinate check.)

Thnak u jesse Well i got it thanku very much!! tht is Good idea to get Touch surface