Why isn't the collision being detected?

I’m fairly new to this but i can’t see any reason why this isn’t working. Both objects have a box collider and both have rigidbody 2d. The console won’t print either message.

void OnCollisionEnter(Collision colis)
    {
            Debug.Log(Jump);
            if(colis.gameObject.tag == "Floor")
        {
            Debug.Log(Jump);
            Jump = false;
        }
    }

Try OnCollisionEnter2d :wink:

All I needed was 2D at the end :expressionless: I knew it would be something stupid. Thanks so much, been driving me insane.

Note that it provides a Collision2D type as well and not a Collision type.