Physics body bounce

I’ve noticed a strange thing about how box2d uses the bounce (aka restitution) parameter to decide how two bodies, when they collide, bounce.

If I have three objects, A B and C, where
A’s bounce = 0.1
B’s bounce = 0.5
C’s bounce = 1.0

I would expect and hope that B bouncing off C would bounce more than if A bounces off C. But box2d seems to ignore the lower bounce property when calculating bounce, as it uses the max restitution of the two bodies:

restitution = b2Max(shape1->restitution, shape2->restitution);

I really need my game to do something more sensible, such as:

restitution = shape1->restitution * shape2->restitution;

Any way to achieve this in Corona? [import]uid: 92621 topic_id: 24975 reply_id: 324975[/import]