def updateCenter(self,worldX,worldY):
        x=worldX/self.tileSize
        y=worldY/self.tileSize
        
        self.tileCache.updateCenter(x,y)
        self.midCache.updateCenter(x,y)
        self.renderCache.updateCenter(x,y)
        
        if not self.asyncBaking:
            minDistSquared=1000000
            minX=minY=None
            for iy in xrange(self.tileCache.size):
                ty=iy+self.tileCache.originY
                for ix in xrange(self.tileCache.size):
                    tx=ix+self.tileCache.originX
                    if self.tileCache.get(tx,ty) is None:
                        distSquared=(tx-x)**2+(ty-y)**2
                        if distSquared<minDistSquared:
                            minX=tx
                            minY=ty
                            minDistSquared=distSquared      
            if minX!=None:
                self._makeTile(ifloor(minX),ifloor(minY),True)
updated the location around which rendering and caching is being done.
dataset/ETHPy150Open Craig-Macomber/Panda3D-Terrain-System/tileUtil.py/BakeryManager.updateCenter