I’m doing what is essentially a breakout clone, and I found one issue that is really annoying me.
If the ball grazes a block at the edge, it counts as a collision and will destroy it, but the ball won’t bounce off it at all.
The obvious solution was to detect the collision’s contact normal and throw the ball in that direction but that had absolutely no effect.
rigidBodyReference.velocity = Vector3.Reflect(rigidBodyReference.velocity.normalized, collision.GetContact(0).normal) * currentSpeed;
Edit:
I guess it’s simply a limitation due to physics inaccuracies, doesn’t matter what I do I can’t seem to correct it.