Travelse can't catch all children in gltf file for LOD

I have a problem with child object. I can use some of the child for LOD but when I tried use another mesh objects which belongs to child of child isn’t working correct vector position and quaternion. I want to use LOD levels but for some reason positions changing some childs going (0,0,0) position some child position genearating correctly please help.


My travelse code;

partMesh.traverse(function (children) {

                if (children.isMesh)  {

                    children.parent.updateMatrixWorld();

                    var vector = new THREE.Vector3();

                    var quat = new THREE.Quaternion();

                    children.getWorldPosition(vector)

                    children.getWorldQuaternion(quat)

                    scene.remove(children.parent)

                    children.parent.remove(children)

                    children.parent = null

                    scene.add(children)

                    children.position.copy(vector)

                    children.quaternion.copy(quat)

                

                    children.parent = pivotMesh

                

                    pivotMesh.add(children)

                    pivotMesh.position.set(-center.x, -center.y, -center.z);

                }

            });