private void HandleInput2() { Ray inputRay = Camera.main.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(inputRay, out hit)) { Mesh deformingMesh = hit.collider.GetComponent <MeshFilter>().mesh; MeshDeformer deformer = hit.collider.GetComponent <MeshDeformer>(); if (deformingMesh) { Vector3 point = hit.point; //useless for now point += hit.normal * forceOffset; //useless for now deformer.AddSmoothing(); Debug.Log("AddSmoothing function has been called !!!!"); } } else { Debug.Log("Failed to find Ray collider to tooth. WTF ???????"); } }