So there's a ball moving on a 2D plane with any vector. When it comes into contact with a collider, it should reflect in a linear fashion. What formula should be used in order to find the angle that this new direction should have? The pieces of information that are known are:
- The X and Y velocity of the ball when it was hit
- The angle it was travelling at when it was hit
- The point of contact
I've found many solutions for if the ball can only hit vertical or horizontal walls, but have yet to find a one for a general case.