Simple example bound box or get the top position gameobject

i’m a bit confused with bound can someone help me out.
my goal is to get the peak position or top of the GameObject coordinates, no matter what its rotation and get it to be use as a position of another GameObject.

currently i’m using a Raycast like so

if(raycastIsHit){
//move the transform upwards else stop
}

I don’t know if I properly understood you question, but I guess you could use bounds.extents.
Take a look at these links: