Two colliders aren't enough.

The problem
Everything looks right.
// Coin: SphereCollider, Is Trigger onvoid OnTriggerEnter( Collider other ){ if ( other.CompareTag( "Player" ) ) Collect();} // Player: CapsuleCollider, no Rigidbody
Both have colliders. One is a trigger. Nothing happens.
Why it happens
Physics only checks bodies.
Unity looks for overlaps on objects it simulates. With no Rigidbody on either side, it never checks this pair.
- A collider on both
- needed
- Is Trigger on one
- needed
- A Rigidbody on one
- the missing piece
The fix in code
Give the coin a kinematic Rigidbody.
[RequireComponent( typeof( Rigidbody ) )]public class Coin : MonoBehaviour{ void Awake() { GetComponent<Rigidbody>().isKinematic = true; }}
Kinematic means physics tracks it but never pushes it, so the coin stays put.
Cheat sheet
Does it fire?
| Coin | Player | Fires? |
|---|---|---|
| trigger | collider | no |
| trigger + Rigidbody | collider | yes |
| trigger | collider + Rigidbody | yes |
One Rigidbody between the two is enough.
The rule
A trigger needs a Rigidbody in the pair.
- Both
- a collider
- One
- Is Trigger
- One
- a Rigidbody
Kinematic counts, so nothing has to fall.