Example #1
0
        // 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);
        }
Example #2
0
        // 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);
        }
Example #3
0
 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;
 }
Example #4
0
 void JumpToPosition(TerrainView.Position p)
 {
     SetPosition(p);
     m_target = p;
 }
Example #5
0
 void GoToPosition(TerrainView.Position p)
 {
     GetPosition(m_start);
     m_end = p;
     m_animation = 0.0;
 }
Example #6
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;
 }