Captain Kirk used the slingshot effect around the sun. You're thinking of Superman.