Hi. New to Unity. Making Pong. Here’s a GIF of the problem I’m facing:
As you can see, when the ball hits a wall at a certain angle, it no longer reflects off.
The ball has a Rigidbody2D
and a BoxCollider2D
with a material that’s bounciness==1 and
friction==0`.
The walls are made up of BoxCollider2D
’s.
So far as I can tell, this “lack of bounciness” is normal behavior for such angles.
However, is there any way to get around this?
Perhaps manually messing with the ball’s velocity via it’s OnCollisionEnter2D
method?
PS - My source code can be found here.
Edit: Looks like this guy had the same issue, but unfortunately didn’t find a solution.