We investigate the existence of periodic trajectories of a particle, subject to a central force, which can hit a sphere, or a cylinder. We will provide also a Landesman-Lazer type of condition in the case of a nonlinearity satisfying a double resonance condition. Afterwards, we will show how such a result can be adapted to obtain a new result for the impact oscillator at double resonance.