1.dont call flattenStrong on the entire level!
2nd. dont use RBC for static geometry. in general dont use RBC at all unless you know you need to use it.
3rd, use dummy nodes to group .hmm maybe 10x10 hextiles and flatten the single dummynodes maybe you can group more into one node. but not all of them.
dont exactly know how to place hextiles exactly but with square tiles it would look like this:
for x1 in range(-4,4):
for y1 in range(-4,4):
dummyNode = NodePath('dummy')
dummyNode.setPos(x1*10 , y1*10 ,0)
for x2 in range(0,10):
for y2 in range(0,10):
tile = hextile.copyTo(dummyNode)
it might be nececssary to get all children of dummyNode to make flatten strong work.
dummy.analyze() should tell you more.
Also, note that flattenStrong() isn’t doing anything anyway in this situation. It won’t flatten across a ModelNode, and there’s a ModelNode at the top of every egg file. This means all of your individual tiles–which each came from an egg file–won’t get flattened together.
To avoid this, you can get the node just below the ModelNode, and use that to construct your grid. That is, do something like this: