I’m having a problem getting OnCollisionEnter to work with another object. Basically in my game I have coins that fall down from the sky. The player is supposed to collide with the coins and the coins should disappear (basic mario stuff). Now these coins have a rigidBody on them because I want to use gravity to make them fall. The issue I run into is once the Coin has reach the ground it enters collision with the ground and The player cannot pick it up. However if the player reaches the coin before it touches the ground it works properly and disappears. I’m not sure what’s going on with OnCollisionEnter and why the player can’t just pick up the coin when it’s on the ground.
Basically, what sparkzbarca said, but personally, I’ve had more luck with keeping all of that code on the player end. That is, have an OnCollisionEnter() function in your player object, and tag the coins. Then, send a message to the coin to destroy it, and add your score/points wherever. So for your player: