                 .then =>
                     if next_child?
                         # fadeToArray(1, 1000) next_child._text_object.children
-                        @panCameraToBBox next_child._text_object
+                        @panCameraToObject next_child._text_object
                 .then ->
                     traverse next_child unless ! next_child?
 

                        @camera.position.z = z(t)
                .each "end", resolve

    getBBox = (object) ->
        box = new THREE.Box3()
        box.setFromObject object
        return box

    panCameraToBBox: (object, duration) =>
        # bbox = new THREE.BoundingBoxHelper( object, 0xff0000 )
        # do bbox.update
        # box = bbox.box

        box = getBBox object

        @panCameraToPosition3 box.center(), duration

    zoomCameraToPosition: (target, duration) =>

    animateLines: (root) =>
        # Fade in the root
        @fadeToArray(1, 1000) root._text_object.children
        @panCameraToObject root._text_object
            .then -> traverse root

        traverse = (node) =>
