Ball Colliding With Other Ball


I am helping a student create a game like air hockey. We need help programming the ball (puck) to bounce off another ball (striker).

We were trying to use the blocks from the mini-golf game where the ball bounces off the obstacle, but it does not seem to be working.

We are trying to use the following blocks:
When ball2 collided with
do if other = ball1
then set ball2 heading to 0 - ball2 heading.

We would appreciate any help. Thank you!

This sample app includes ball on ball angle math:

This is what I did for my MiniPool game:

*** this photo is draggable.Just drag this photo to your code design zone.


Thank you both SO much! I greatly appreciate you helping me out.