I am trying to use leap motion to interact with a couple of other game objects. At a very simple level, I have a cube which I need to interact with. For this, I wrote a script -
using UnityEngine;
using System.Collections;
public class DoorDetector : MonoBehaviour {
void OnCollisionEnter(Collision other)
{
Debug.Log("Hello");
}
}
This should ideally display a Hello in the console on Collision, but it doesn't. I have a mesh collider applied to the body and for the hands, I'm using the RigidRoundHand prefabs. I tried applying a rigidbody (in case the prefabs don't do it already), but that did not work as well.