Hey so basically I am pretty new to both Unity and LeapMotion and am trying to trigger an event upon the virtual hand prefabs interacting with a cube in the scene. I believe I could use:
public void OnCollisionEnter(Collision col)
if (col.gameObject.name == "InteractionSphere")
Debug.Log("You have just touched the sphere");
else if (col.gameObject.name == "InteractionCube")
Debug.Log("You have just touched the cube");
However, I do not know on what to drop this script into so that it will work. I have tried dropping it onto the L and R Capsule Hands, and that does not work. I just want the console to read if I have touched the cube or the sphere with either hand, and it, as of now, does not work.