Procedurally generating a row of books in Unreal Engine using PCG is fairly straightforward, but handling gaps and calculating lean angles was a fun challenge.
Books 3D Model:
https://www.cgtrader.com/free-3d-models/interior/house-interior/books-collect
To fix this, I added another step to check for bottom contact.