try to integrate elastic/inelastic collision