Function autoScaleObject3D