- Home /
Question by
Chris11303 · Mar 22, 2014 at 02:04 AM ·
collisiondestroy
Won't destroy coin on collision - 2D
Hey, I am having trouble with this Collision thing. I have no way to explain it, here is a screen shot of everything: Both wheels have the exact same thing, except a different name. http://imgur.com/H4sbVAL,1KEghRV,pSELnA4,Er6gOCn There are four images.
Comment
Answer by taylank · Mar 22, 2014 at 03:47 AM
The reason is you have set the collider on the ATV as a trigger. So you have to use this instead:
void OnTriggerEnter2D (Collider2D other) {
//Check if it's Coin-50
//If yes, destroy
}
Your answer
Follow this Question
Related Questions
destroy touch the screen on gameobject in camera 0 Answers
Trying to Delete Object upon Collision 2 Answers
Destroy on Distance equals zero... 1 Answer
Destroy character controller and instantiate new one 1 Answer
Destroy On Collision 4 Answers