In sm64js (sm64 but js), you can actually use the sweep attack backwards and you will move backwards towards the goomba, unfortunately, this didn't work in the actual game, so I had to salvage this footage by comedically ending this goomba's life at the last second. May Goomba rest in peace.