Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is the player character being flung farther away from the planet by gravity?

Asked by 5 years ago
Edited 5 years ago

Usually, when something is orbiting a planet, it gets closer, but once the player goes into orbit, they keep getting swung farther and farther away for some reason instead of landing back on the planet. I tried increasing gravity to something bigger (it's currently set at -4000) but doing that just makes the whole process of the player being flung farther into orbit even faster.

        --Aplication of gravity.
        local direction = -Functions.Direction(player.HumanoidRootPart.Position, planet.Position);
    bodyForce.Force = direction * gravity;
0
Too much pressure? TheJellyNinja_XD13 62 — 5y
0
What pressure? bludud1234 40 — 5y
0
Can you post a more detailed script? HeyItzDanniee 252 — 5y

Answer this question