OnCollision change the angle of the object

I am making a game a little be like a pong gamer style.

For now I am using the bouncy physic material, but form some blocks on the game I can’t use bouncy material because I need the ball to passtrhough this type of block and it gets destroyed, and I wasn’t ablle to do this when the block had the bouncy material.

Since blocks its a prefab I think I have to have the bouncy material for every block or for none. I am right?

So I was trying to create a script with the same logic as the bouncy material but with a flag when set the true, the ball won’t bounce.

The problem is the I know the logic but I am new to unity so I have no idea how to code it.

I think all I have to do is get the angle of the ball and invert it.

Like I’ve said, I have no idea how to make it.

by the way.Sorry if I can make my self too clear, english is not my language.

Well I solved my problem setting the isTrigger = true, this way my ball pass trhough it and I can handle the event OnTriggerEnter.