You can use camera x, y, z position and FOV to move the 3D box. FOV is for increasing the size of the box.
I made it from the video Scratch Tutorial | How to make a 3D Engine In Scratch | Part 4 | Clipping! Video link-https://www.youtube.com/watch?v=VEBis3v_BoE&t=308s