Is this how a ladder collider works?

Hi everyone! I’m trying to make my ladder collider work, can someone help me?

I’m not getting errors, it’s just not working. The following is part of my FirstPersonController.cs:

    void OnCollisionStay(Collision collisionInfo){
        if(collisionInfo.gameObject.tag == "ladder"){
            if(Input.GetButton ("Climb")){
                verticalVelocity = 5.0f;
            }
        }
    }

The object is to enable the “Climb” button if the CharacterCollider encounters an object tagged “Ladder”. As I mentioned, this is a part of the controller script attached to my player.

Thank you for reading!

unitygems.com , third topic. Put logs to make sure that your method is called.