Did the Buddha tell how to visit another part of universe via meditation? Based on this answer I came to know that the Buddha has spoken about life on other planets; so did he ever explain any method, how to visit those places while doing meditation?

Weirdly I have read this in Hinduism as well: that it's easy to visit another planet using your mind, instead of wasting more time and resources by physical means, but I never find a method to do so.
The Buddha mentioned many supernatural powers called siddhi but he did not teach them. He mentions that samadhi is required to developing siddhi but since siddi do not help to end dukkha the Buddha doesn't explain exactly how to develop siddhi.