Measuring/finding the height of a stack of game objects then recording that number.

I have a game where i want to be able to find the highest point of a stack of objects every frame and record this value so I can :

a) use it in a high score system and b) be able to move the camera up as the height increases

Im a total noob so any ideas or suggestions would be appreciated.

Thanks

Easiest solution is likely to cast rays sideways. It also has a nice feedback for your automatic camera, if the ray hit something then pan upwards.

Ok cool I’ll look into that then.