Author Topic: Object3D with shared data  (Read 1813 times)

Offline ramzes0071

  • byte
  • *
  • Posts: 11
    • View Profile
Object3D with shared data
« on: November 07, 2013, 06:15:59 pm »
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?
« Last Edit: November 07, 2013, 08:09:24 pm by ramzes0071 »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Object3D with shared data
« Reply #1 on: November 07, 2013, 08:49:40 pm »
Do something like

Code: [Select]
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();