I have a script that will destroy a gameobject when the FPS_Controller collides with it (see attached). How do you make a gameobject destroy when a leap motion hand collides with it? Is there a way to attach my current script (or modify it) to achieve this effect?
For example, it would be nice if I could ‘pop’ a virtual bubble using leap motion hands in Unity.
Because the Leap Motion gameobject has colliders attached, I ended up just calling OnCollisionEnter and disabling the mesh renderer on the target gameobject, which I stored as a variable. Not very elegant, but it worked in this case.