示例#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;
 }