I would like instantiate an object, but I got a problem : when I instantiate it, all of my components and objects are correctly instantiate but not their properties.
And I use this properties added to manage them. (like isSomething = true) to easily designate them.
I want to generate an object with different object3D in there, like a motor (it could be anything)
I added different properties in my mainObject like pistonList = which list the objects and each piston get a property isPiston = true in their properties.
Like it, if I want to regenerate pistonList, I do a .traverse in my mainObject (my motor) and if obj.isPiston : pistonList .push(obj) etc
I thought about using the name to do it but if there is another solution I take it