Instances - How to group and instantiate?

Hi,

I have a flat represented in Babylon. A flat contains walls, floors, windows, doors, balconies etc.

My apartment has n floors and each floor has only one flat and the structure of every flat is same. So, I want to instantiate my flat n times. As the flat is not a single mesh, I want know how to efficiently do it. I can merge all the meshes of a flat into a big single mesh and instantiate but I don’t want to do it.

Is there any way that I logically group a set of meshes and instantiate this group?

Thanks in advance.

Yeah to be honest I would store all flat meshes in an array[] and just instantiate all meshes from there

1 Like