Object3D with shared data

Started by ramzes0071, November 07, 2013, 06:15:59 PM

Previous topic - Next topic

ramzes0071

Hi, I have one question. I need to create a lot of object3D(coins) each has different position and later translate each object separately. How should I do this?

EgonOlsen

Do something like


Object3D copy=new Object3D(bluePrint, true);
obj.shareCompiledData(bluePrint);
obj.shareTextureData(bluePrint); // This may or may not apply in your case. In most cases, it's ok.
obj.compile();