Elastic impact with friction