Пример #1
0
 public void setStateTip()
 {
     projection.SetActive(false);
     tip.SetActive(true);
     needleState = NeedleStates.Tip;
     offset      = new Vector3();
     // clear current mesh
     GetComponent <MeshFilter>().mesh.Clear();
 }
Пример #2
0
        public void setStateProjection()
        {
            projection.SetActive(true);
            tip.SetActive(false);
            needleState   = NeedleStates.Project;
            chainedPoints = GetChainedPoints(m_HeightSegmentCount, ax, ay, bx, by);
            Mesh mesh = BuildMeshWithProjection();

            GetComponent <MeshFilter>().mesh = mesh;          // Set the mesh so that it appears in the graphics
        }
Пример #3
0
        /// <summary>
        /// MonoBehavior method called on start.
        /// </summary>
        public new void Start()
        {
            Debug.Log("Initializing HoloNeedle");
            chainedPoints = GetChainedPoints(m_HeightSegmentCount, ax, ay, bx, by);
            Mesh mesh = BuildMesh();

            GetComponent <MeshFilter>().mesh = mesh;

            // Get tcp object
            tcp = GetComponent <TcpClientManager>();

            Debug.Log("Running HoloNeedle ...");
            projection.SetActive(false);
            tip.SetActive(false);
            needleState = NeedleStates.Straight;
        }
Пример #4
0
 public void setStateShape()
 {
     projection.SetActive(false);
     tip.SetActive(false);
     needleState = NeedleStates.Shape;
 }
Пример #5
0
 public void setStateStraight()
 {
     projection.SetActive(false);
     tip.SetActive(false);
     needleState = NeedleStates.Straight;
 }