public void setStateTip() { projection.SetActive(false); tip.SetActive(true); needleState = NeedleStates.Tip; offset = new Vector3(); // clear current mesh GetComponent <MeshFilter>().mesh.Clear(); }
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 }
/// <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; }
public void setStateShape() { projection.SetActive(false); tip.SetActive(false); needleState = NeedleStates.Shape; }
public void setStateStraight() { projection.SetActive(false); tip.SetActive(false); needleState = NeedleStates.Straight; }