Can you recommend a way to write a Floating system to work with grids?

VFX Graph Tutorial - Magical Library

MY Create in Unreal


Sorry, not quite sure what you are trying to achieve? Could you elaborate?
You want the books to be stacked in a grid, but then add forces to them in forward direction?