Bounciness depending on surface

In my 2d game I have a ball (simple sprite) with attached bouncy material to it. How can I make the ball bounce of walls (gameObjects with a boxCollider2d), but NOT bounce off on collision with ice ground (a gameObject with a boxCollider2d).

Simplified: is it possible to reverse the physics control and let “the surface” decide how bouncy it is and how much to bounce off the ball?

Would the chosen solution deviate if a grassy surface is included, where the ball would bounce off just slightly?

Any help is much appreciated!

You should attach a non-bouncy material to the ball, then apply the bouncy materials to the other elements you want the ball to bounce of. Apply non-bouncy materials to those surfaces you don’t want the ball to bounce of.

1 Like

Too obvious, I guess my brain was on vacation yesterday. thank you!

1 Like