The setup utilizes proximity-based interpolation to make the cubes move.
Developer and Expert Engineer at Owlchemy Labs MajorMcDoom has demonstrated a satisfying self-organizing cubes setup created with Unity. Powered by Unity Physics and proximity-based interpolation, the algorithm allows digital cubes to assemble into various one-cube tall structures, making it seem like the models are attracted to one another via magnetism. According to the creator, the setup is still WIP and will be given the ability to build taller structures in the near future.
You can check out more of MajorMcDoom's projects by clicking this link. Also, don't forget to join our Reddit page and our Telegram channel, follow us on Instagram and Twitter, where we share breakdowns, the latest news, awesome artworks, and more.