My player floats in air while coming down the stairs.

I have added a player with a rigidbody, and a character controller, but after playing it, the character falls through the terrain. here’s a picture, depicting my problem.

173391-screenshot-2021-01-01-194356.png

However, when I use rigidbody and capsule collider, while going up, it moves perfectly, but while coming down, it walks a few distance above the air, and then starts coming down… How can I resolve this… Pls help

So, I had that same problem too in my first game, I think that if you use the RigidBody, Just add a Capsule collider. That should fix it.