public void SetPosition(PanoramaInfo panoInfo) { Vector3 _rotation=new Vector3(panoInfo.lat, -panoInfo.lng, 0.0f); Vector3 _translate = new Vector3(0, 0, -37.5f); Lat = _rotation.x; Lng = -(_rotation.y); panoID = panoInfo.panoid; this.impo = panoInfo.impo; thumbnailURL = thumbnailURL + panoID; Debug.Log(Lat + " " + Lng + " " + panoID ); transform.Rotate(_rotation); transform.Translate(_translate); }
public void SetPosition(PanoramaInfo panoInfo) { Vector3 _rotation=new Vector3(panoInfo.lat, -panoInfo.lng, 0.0f); Vector3 _translate = new Vector3(0, 0, -37.5f); Lat = _rotation.x; Lng = -(_rotation.y); panoID = panoInfo.panoid; this.impo = panoInfo.impo; info_flag_path = panoInfo.info_flag_path; info_title = panoInfo.title; info_country = panoInfo.country; info_area = panoInfo.area; info_contents = panoInfo.contents; thumbnailURL = thumbnailURL + panoID; Debug.Log(Lat + " " + Lng + " " + panoID ); transform.Rotate(_rotation); transform.Translate(_translate); }