How do I make an object's shadow length same as its height

Well, I set up to do this by making a cube and deleting all but three sides. Match the shadow from the upper left near corner to the lower back corner by playing with the shadow sliders. There’s a slight imperfection, but maybe less than an inch in 8 feet.

Edit: I did a post on this back in 2018 here.