oncollisionexit not working

I made a code that causes the platform the player is standing on to fall after being left. void

public Rigidbody rb;
public GameObject player;

void Start () {
	rb = GetComponent<Rigidbody>  ();

void OnCollisionExit(Collision other){
	if (other.gameObject.CompareTag ("player")){
		rb.useGravity = true;

but when the player stands on a platform, it immediately falls without the player having left the platform. I there a fix to this?

Hi Marshel!
One possible solution is to use a box collider as a trigger and use OnTriggerExit instead of OnCollisionExit. You can make the box slightly higher so that you’ll be sure the player is jumping away before the exit is called.