0 votes

I'm making a space game where the surface of each planet is represented by a flat tilemap. When you leave the surface of the planet, the game transitions to a scene where the planet is represented by a circle, so that orbital mechanics work. What I want to know, is how can I make it so that the players x position on the flat tilemap matches up to an angle on the circlular planet. For example, if the player leaves at the far left end of the map and appears at the north pole, if they leave from the center of the map, they'll appear at the south pole. I hope that made sense because my wording might have been really convoluted. Thanks!

in Engine by (67 points)

This does not answer your question, but I developed a shader just a couple of weeks ago which might be useful for your project: https://gist.github.com/t-karcher/4e78645021bc43a6ce377d9a18c2b1f5

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.