Hi, all. Today I encountered a strange problem. For instance, modelA is an ObjectContainer3D, which contains several meshes and is the child of another ObjectContainer3D named models. And I cloned the modelA like the code shown below:
private var modelB:ObjectContainer3D;
private var modelC:ObjectContainer3D;
......
var distance:Number = 10;
modelB = ObjectContainer3D(modelA.clone());
modelB.y -= distance;
modelC = ObjectContainer3D(modelA.clone());
modelC.y -= distance * 2;
models.addChildren(modelB, modelC);
However, I found these three ObjectContainer3D actually overlapped each other. In other words, modelB and modelC didn’t move along the y axis as expected. But when I traced the position of each one, I found their y values did change!!! Moreover, if I changed other property such as rotationX, it did rotate. After that, I also tried to change the y value of models, namely their parent container, and it moved too. So I got no idea about this issue…
Is that something wrong happened when I used addChildren method???
Hope someone could answer me. Thanks in advanced!