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.