Hi There, I'm very new to the leap motion and a beginner at Unity but I'm really struggling to trigger a collision with a gameObject after an extended finger has been detected. So far I've used the Extended Finger Detector script and can detect the correct hand tracking and independently I can trigger a collision with my hand to activate a haptic sensation with the script below but I dont understand how activate this script only when the Extended Finger has been detected? Any help would be so much appreciated.
private bool IsHand(Collider other)
{
if (other.transform.parent && other.transform.parent.parent && other.transform.parent.parent.GetComponent())
return true;
else
return false;
}
void OnTriggerEnter(Collider other)
{
if (IsHand(other))
{
print("Butterfly Detected");
Sensation.SetActive(true);
}