kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

Models cloned, animationsequence object cloned? #56

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I have a problem with the animation of a cloned md2 object.
Here are parts of my code:

var loader:LoaderCube = Md2.load("models/ogre.md2",
{material:Smart.getMaterial('ogre'), loadersize:100, scaling:0.01,
rotationY:90}) as LoaderCube;

view.scene.addChild(loader);

loader.addOnSuccess(onLoaderSuccess);
function onLoaderSuccess(event:Event):void {
       var ogre:Object3D = loader.handle.clone();
       view.scene.addChild(ogre);
       ogre.position = new Number3D(300, 0, 300);
      (ogre as Mesh).play(new AnimationSequence('run', true, true, 7));
}

So when i run this code, both original and cloned model play the
animationsequence.

Is this normal or am i doing something wrong?

Greetz
Sam

Original issue reported on code.google.com by samoverd...@gmail.com on 22 Aug 2009 at 5:37

GoogleCodeExporter commented 8 years ago
solved it!

no reply needed

Original comment by samoverd...@gmail.com on 23 Aug 2009 at 2:00