Original Post
When a ball bounces into something like the floor the component of the speed normal to the plane (for example the floor) gets reversed. I'm trying to program a physics simulation were there are, among other things, balls bouncing off walls. Now I know that I could simply reverse the speed component as I explained above to make the ball bounce butI find this as somewhat of a "hack", what I want to know is how it "really" happens - in terms of forces and stuff. The ball changes it's momentum which means that there is some force that pushes the ball from the wall over a certain time - impulse. How do I calculate this force (by perimiters such as the rigedness of the wall, speed of the ball...) and how do you know when to apply it and when to stop? One of the main reasons that I want to do it this way, is that I want the entire simulation to work by different forces being applied to the ball and the ball moving accordingly, and not every scenario having it;s own special rules.(that's not how it works in nature either) Thanks.