DamageImpact and Impulse energy fix

This moves to a more physically correct computation of damage and impulse created on collision of 2 objects, based on the formula of the partly elastic impulse.

Before this, bullets colliding with a heavy object got way too much damage, for example.