How do I make an object that only passes through certain objects?

I’m trying to make a game where the player is avoiding obstacles while running away from a giant rolling ball. The obstacles don’t kill you, just slow you down. When I test it, the ball gets slowed down by the obstacles, and sometimes even stuck. I tried to make the ball a trigger, but it just passes through the ground. How do I make it so the ball only passes through the obstacles and not the ground or the player?

You can fix via Rigidboy, one axys position, so ball will not “fall”.

Or you can make the obstacle trigger, not the ball.