I went down a rabbit hole. I remembered seeing guns like that, but they all seem to have spinning barrels. Look up centrifugal guns.
I was sure I'd seen a space launch method but it took me a while to find. It's called the slingatron and has a tube that wobbles like a hula hoop.