So we have an idea at my studio for a game where the world would be a sphere. The problem is the player keep falling and doesn’t “snap” to the planet (thus we can go for a full revolution). I tried to find online tutorials and tests, but apart for cinematic uses, couldn’t anything.
The idea would be :
player start is on the planet.
you can jump but you can’t “exit” the planet’s gravitational pull.
you can make a revolution on the planet without falling (one full circle).
player movement is free (no trickery like juxtaposing planes and creating the illusion of a planet or round level).
Planet will need later to be “hollow” to create a cave system. (we could create a new level for this one so not as important as 1-4).
Thus my question is : is there a way to create a spherical world where the player “snaps” or feel the gravity pull of the sphere ?
If you want to go inside the planet, there you need another technique, actually.
That would require tracing down from the character and setting the distance and normal based on the underlying surface. I do have code for that, but it’s worse than this