Hi, it's me again.
I have a class simply called "Surface" generating a 2 dimensional
sphere surface (an atomic plan to be more precise), each one of the
sphere being an array member.
I want to add these spheres to my 3D view, which I currently do with
two "for" loops, although this solution forces me to "guess" my
private attributes width and height of the surface, which are fixed
but not to be known outside of the class.
I heard there was an Away3D function called addChidren, but when I
do :
private var tabSphere:Array;
tabSphere = Surface.getInstance().getTabSphere();
scene.addChildren
(tabSphere);
My compiler (FlashDev + Flex SDK) tells me
"TypeError: Error #1034: Echec de la contrainte de type : conversion
de [...@32c2c81 en away3d.core.base.Object3D impossible.
at away3d.containers::ObjectContainer3D/addChildren()[C:\...
\away3d_3_3_3\away3d\containers\ObjectContainer3D.as:160]
at Main()[C:\Users\isen\Documents\Projet N4\Away3DWoW\src\Main.as:
83]"
Line 83 being the addChildren...
I will also need to add some wow-engine datas to this array, so this
addChildren stuff is pretty important to me !
Thanks in advance,
Florent.