How to make a sticky ball?

Hello. I working on my super project Click to watch

Use left mouse button for road painting.
I want make my ball sticked to the road, it means that ball still can moving on the road, but if ball gets on the hump = he don’t jumping in the air. But if road is ending - ball jumping forward free. What tips can you give me? Thanks

Don’t use rigidbody if you don’t want physically correct movement, make a basic controller for that, or cast a ray from the ball towards the ground, if it hit, then set the vertical position to the ray’s hit point’s vertical position.

If you are not familiar with raycasting: