I'm looking to make a simple game/demonstration of a ball infinitely bouncing around in a box. I'm unsure of what formulas I should be using to get an acurate representation of a ball bouncing with a constant speed off of surfaces. If anybody can direct me to any resources I'd appreciate it.

Thanks.