gravity, restitution coefficient and basic particle collisions
collision corrections for wall and particles