[RESOLVED] Destroy GameObject with Leap Motion Hands

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.

Hi,

Try this assign the tag to gameobject in the floor as bottom.

void OnControllerColliderHit(ControllerColliderHit hit)
 {
    if (collisionFlags== CollisionFlags.Sides && hit.collider.tag !="bottom")
	{
	  print ("collider hit...:"+hit.collider.name);
	}

 }

Check the name displayed in the print same as the object to destroy.

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.