It depends on the language you're coding in.
If you want to really make a realistic bounce, you should consider the following:
- The tilt of the board
- Friction
- How much does the side absorb of the energy
The easiest part is of the angle is probably the simple fact that when it bounces to the wall at an angle, it bounces off at the same angle. With the tilt applied etc. Physics are fun, aren't they?
|