I am working on a school project and were trying to use the leap motions hand tracking to play on a drum kit in unity.
We tried to implement a bit of c# that should allow a sound to play when touching a certain part of the drum kit but were getting an error and have not been able to fix it. it seems like were missing a class.
We tried using other versions but no luck.
this is the piece of code:
public class trigersnare1 : MonoBehaviour
private bool IsHand(Collider other)
if (other.transform.parent && other.transform.parent.parent && other.transform.parent.parent.GetComponent())
void OnTriggerEnter(Collider other)
Debug.Log("A hand collided!");
and this is the error:
Assets/trigersnare1.cs (9,115): error CS0246: The type or namespace name `HandModel' could not be found. Are you missing a using directive or an assembly reference
If any knows how to fix the error or has done this before and has some tips i would be very thankful