How do I detect if ball bounces of floor?

Hi, Im trying to figure out how to program in C# how a ball bounces of floor. How do I do this?

Thanks

Thanks for answering guys very helpful forum.

You don’t need to program it, all can be done with application of right physics material to the ball: Unity - Manual: Physic Material asset reference

Unity by default comes with few physics material: Assets > Import package > Physic Materials.

For detection of bounce, take a look on this.

No one here is required to help you. Instead of being sarcastic, try doing some research.

despite the rude reply I will answer. As mentioned people here will usually help if they can.

use OnCollisionEnter to determine when it collides with other objects. You can test the name to see if it is the floor.