Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     // Ray ray = new Ray(transform.position, transform.forward);
     if (plantAction.GetStateDown(trackedObj.inputSource))
     {
         Ray ray = new Ray(transform.position, transform.forward);
         renderer.GetCoordToCut(ray);
     }
 }
Exemple #2
0
 private void OnCollisionEnter(Collision collision)
 {
     Debug.Log("entered");
     if (collision.gameObject.name.Equals("Hammer"))
     {
         Pulse(duration, frequency, amplitude, true, true);
         Ray ray = new Ray(transform.position, transform.forward);
         renderer.GetCoordToCut(ray);
     }
 }