Ah! That is more or less what I was looking for. I'm not really looking for what happens at the macroscopic level, since my physics simulator doesn't go that far into it. I have not heard of the coefficient of restitution before your post(sadly my physics book doesn't mention it), so I googled...