Original Post
So its been a while since I was in Calculus and I have since forgotten exactly how I would go about doing this. Say I have the X and Y velocities of the player along with the slope of a line. How do I calculate the X and Y velocities after the player collides with the line and then deflects and "bounces" off of the line?
All I can remember is I know I have to get the normal vector of the line but after that I am not sure what to do.
Thanks! :)
All I can remember is I know I have to get the normal vector of the line but after that I am not sure what to do.
Thanks! :)