Spawning and Connecting Object


Im making an infinant runner and i need to spawn in blocks which connect to eachover which different rotations, think of the line from that ketchapp game circle, like snapping pieces magnet togeather to form some sort of bridge or long platform. How would i do this, the platforms need to vary in size too so scaling + playing with distance etc.

------.—/ .-------------/
.--------------/ .-------------------------------/