// 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); } }
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); } }