private Vector3 CalculateCameraPosition(KGFMapSystem.KGFPhotoData thePhotoData) { Vector3 aPlanePosition = thePhotoData.itsPosition; float aHalfPlaneSize = thePhotoData.itsMeters / 2.0f; aPlanePosition.x += aHalfPlaneSize; //center camera above plane if (itsMapSystem.GetOrientation() == KGFMapSystem.KGFMapSystemOrientation.XZDefault) { aPlanePosition.z += aHalfPlaneSize; //center camera above plane aPlanePosition.y += GetComponent <Camera>().farClipPlane; } else { aPlanePosition.y += aHalfPlaneSize; //center camera above plane aPlanePosition.z -= GetComponent <Camera>().farClipPlane; } return(aPlanePosition); }