If you have all the parts in a container, just clone that.

var set1:ObjectContainer3D = new ObejctContainer3D(keyboard, monitor, tower);
var set2:ObjectContainer3D = set1.clone();
var set3:ObjectContainer3D = set1.clone();

Should work right?

Regards,
Robert Andersson

--------------------------------------------------
From: "Vic" <v...@vicware.com>
Sent: Monday, April 05, 2010 10:04 PM
To: "Away3D.dev" <away3d-dev@googlegroups.com>
Subject: [away3d] Question about cloning...

If I create a cloned object simply like this:

CPU03 = new ObjectContainer3D(child.clone());
CPU03.moveTo(100, - 74.25, 38);
view.scene.addChild(CPU03);

Is there a way to clone any bunch of objects into a single
ObjectContainer3D?
i.e. I have a keyboard, monitor and computer tower models and I want
to clone
these into a ObjectContainer3D and place several of these
sets around the scene.

Thanks -
Vic




--
To unsubscribe, reply using "remove me" as the subject.


Reply via email to