Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Would it be much more work to create a 3D game on a planet rather than on a flat plane? What engines would support this and what techniques would I use?

An example would be a small sphere the player could walk around to get back where they started.

share|improve this question

There's a nice article over at Gamasutra that explains the physics in Super Mario Galaxy, which is probably what you're looking for.

Basically they use the inverse surface-normal of the closest polygon underneath the player as gravitational force. If the player moves over to another polygon while in the air, they interpolate the normals to smooth motion and orientation of the player.

share|improve this answer

I don't think there are engines who specifically support this, but in general it's not all that complicated.

Instead of translating bodies purely linearly, you have to move it according to it's distance from the center of the planet, as well as depending on it's angle between the body-center_of_planet line and your coordinate system's axes.

share|improve this answer

If you just wanted simple wrap around, and didn't care about viewing the actual curving of the earth during game play you could simply:

Loop the game world like a planet (this may requires some fancy radial math for the position)

And for the map use a planet model.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.