Spherical World creation ? (mario galaxy type but simpler).

Hi,

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 :

  1. player start is on the planet.
  2. you can jump but you can’t “exit” the planet’s gravitational pull.
  3. you can make a revolution on the planet without falling (one full circle).
  4. player movement is free (no trickery like juxtaposing planes and creating the illusion of a planet or round level).
  5. 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 ?

1 Like

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 :slight_smile:

Hey thanks, i’ve seen solutions like that, but we have the rest of our player as a character.

Might try to follow but all close tutorial i’ve seen say the same, “character” don’t work. Use Pawn. Also would it work on ue5 you think ?

Thanks for the tutorial anyway ^^

1 Like

You can’t use a character, because the code that’s in the character won’t work with a spherical world.

You have to make a pawn version of your player :slight_smile:

My player is also mainly a character, but when I switch the spherical, I have to also switch to a pawn type.

Ok thanks for those details.

A last question : is there big differences between a pawn and a character ? If not, could i just copy paste the code ? :stuck_out_tongue:

Pretty big difference, yeah.

The point is, the character code is no good for planets. So what’s the use of copying it? :blush:

1 Like

So that i don’t have to restart from scratch.

But maybe that’s just the inevitable.

1 Like

Two problems with copying

  1. None of the character code is any use for planets

  2. If you want to copy it anyway, you’ll need to edit the C++

1 Like

oh no i meant the character code handling the movement of the player. Not the code for the planet ^^

2 Likes

That’s what I mean too.

The standard UE character in built for flat, or slightly sloped surfaces. That’s it, end of story.

If you want something to walk on a planet, you need to write a pawn :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.