Remove Object from Game after Collision with Player (Unity 5.2.3f1)
Hey, I have a game where the player can throw knives. I would like to make it so the knives can be picked up again after they have been thrown. I need the knives to be collidable, not a passthrough trigger.
Any help would be appreciated!
Note: Using First Person Character from 5.x Standard Assets
Not sure what your problem is ? It sound like your asking for someone to do the work for you ?
Sorry, an edit I made while the post was in moderation didn't seem to go through. The issue was that OnTriggerEnter would not work for me because I needed the object to be solid, however, I did not realize that Unity allows multiple colliders.
Woops sorry I see that now my bad XD That was be being silly there.
$$anonymous$$ikeymike's answer should do it
Answer by mikeymike · Dec 02, 2015 at 04:04 PM
void OnColliderEnter(Collider other) { if(other.gameObject.tag == "Player") { //Pickup knife stuff here} }