We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用GeoToWorldPosition这个方法,输入经纬度,为什么点没有移动到相应的位置呢,我输的经纬度对应的是New york,但是它移动到其他地方去了
public class moveWaypoint2 : MonoBehaviour { public InputField Position; private Vector2d getLatlon; private Vector3 target; public float speed; [SerializeField] AbstractMap map;
// Update is called once per frame void Update () { Position = GameObject.Find("inputTest").GetComponent<InputField>(); getLatlon = Conversions.StringToLatLon(Position.text ); target=map.GeoToWorldPosition(getLatlon); gameObject.transform.localPosition = Vector3.MoveTowards(gameObject.transform.localPosition, target, speed * Time.deltaTime); }
Unity
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我遇到的问题
调用GeoToWorldPosition这个方法,输入经纬度,为什么点没有移动到相应的位置呢,我输的经纬度对应的是New york,但是它移动到其他地方去了
我遇到的问题截图
public class moveWaypoint2 : MonoBehaviour {
public InputField Position;
private Vector2d getLatlon;
private Vector3 target;
public float speed;
[SerializeField]
AbstractMap map;
该问题的类别
Unity
The text was updated successfully, but these errors were encountered: