Function autoCenterObject3D