Different sized rectangles next to each other at random

Hi All,

I’m trying to achieve this sketch but am not sure how to stack various sized objects next to each other, randomly and without overlapping. I would like to do this along a cruve, but have no idea where to start.

Normally I would approach this by dividing the curve into lengths, placing the point and then vector to point move and insert the rectanlge. But this only works when the distance between is the same size. How does this work if the size between the points needs to change and then have the corresponding length rectangle assigned?

Thank you so much in advance!
220916_game test_trying rotated buildings.gh (55.5 KB)

220916_game test_trying rotated buildings_re.gh (15.1 KB)


I have been trying to move / rotate / match length to existing curves and also add in varied depths in the boxes but don’t really understand how to?