Hi,
I was reading Andre LaMothes book Tricks of the Windows Game Programming Gurus and got into this.
On page 813 he combines conservation of momentum and conservation of kinetic energy equations and gets that:
vaf = (2*mb*vbi + vai * (ma - mb)) / (ma + mb)
and
vbf = (2*ma*vai - vbi * (ma - mb)) / (ma + mb)
I was wondering how did he do that? I tried for few hours with no result... (I know how to combine equation groups) Could someone tell the steps how to get to those equations?
Then he does some calculation with those:
ma = 2kg
mb = 3kg
vai = 4m/s
vbi = -2m/s
And he gets:
vaf = 1.6 m/s
and
vbf = 2.4 m/s
If I do that with those exactly same numbers I get -3.2 m/s and 3.6 m/s. So are equations wrong or has he calculated wrong or what's the problem?
Thanks.
Edit: missing some brackets...