Shockwave generator (1) comprising a body (3) with a channel (5) extending between an applicator head and an end section, an electromagnetically driveable impactor slideable in the channel, and at least one coil magnet for thrusting the impactor (11). The shockwave generator comprises a control unit (17) programmed to reverse the polarity of the at least one coil magnet. The polarity of the one coil magnet is reversed when the impactor magnet (11) is bounced by a bouncer magnet (19).