Impact dynamics for gravity-driven motion of a particle