Im planning on cloning my Bot models so that i can have 10 on the terrain with the same abilities, im gona try use this code, just wondering if this is the right way to clone models with animations and will it affect performance?
CloneImportExport cloner = new CloneImportExport();
cloner.saveClone(node);
for (int x=0;x<10;x++) {
newOne = (Node) cloner.loadClone();
newOne.setLocalTranslation(calcRandomCharacterPos( GameTest.getTerrainPage()));
newOne.updateGeometricState(0, true);
num.attachChild(newOne)
}
Sorry about this but could ya give me a brief example of how this actuallt works, like in my code i have a node for the bot model and for example if im close to it it runs at me shooting, how does it determine which bot will run at me etc.?