// Use this for initialization void Start() { m_view = GetComponent <TerrainView>(); m_target = new TerrainView.Position(); m_start = new TerrainView.Position(); m_end = new TerrainView.Position(); m_previousMousePos = new Vector3d2(Input.mousePosition); }
// Use this for initialization void Start() { m_view = GetComponent<TerrainView>(); m_target = new TerrainView.Position(); m_start = new TerrainView.Position(); m_end = new TerrainView.Position(); m_previousMousePos = new Vector3d2(Input.mousePosition); }
void SetPosition(TerrainView.Position p) { m_view.GetPos().x0 = p.x0; m_view.GetPos().y0 = p.y0; m_view.GetPos().theta = p.theta; m_view.GetPos().phi = p.phi; m_view.GetPos().distance = p.distance; m_animation = -1.0; }
void JumpToPosition(TerrainView.Position p) { SetPosition(p); m_target = p; }
void GoToPosition(TerrainView.Position p) { GetPosition(m_start); m_end = p; m_animation = 0.0; }
void GetPosition(TerrainView.Position p) { p.x0 = m_view.GetPos().x0; p.y0 = m_view.GetPos().y0; p.theta = m_view.GetPos().theta; p.phi = m_view.GetPos().phi; p.distance = m_view.GetPos().distance; }