Sorry, just noticed my mistake in for loop…
So this is how it works fine for me:
for(int i = 0; i < lev.addObject.bulletList.size(); i++)
bullCol = lev.addObject.bulletList.get(i).getWorldBound();
lev.addObject.addExplosion(spatial.getLocalTranslation()); //explosion fx
Well I can not find this “TestInstanced” example in JmeTests and even on this site
I’m kinda new to it and I know that I need to learn a lot about optimization topic.
So maybe few links would helped me very much
Anyway - if I understand it right, I create Nodes for repeated objects (projectiles, enemies) - attach geometries to them. Then attach these few main Nodes to the RootNode.
And then hope it will reduce number of objects in the scene.