Realistic Earth Script - Where To Start?

I’m not the best coder, and I can’t really find what I’m looking for. So I thought this was the next best place. How would you go around making a realistic earth script? One script that changes Gravity, Air Density, Creates an atmosphere that will slow down any part that enters the atmosphere. Like real life, a literall Earth script. The closest thing so far is 3D Atmosphere - Roblox. But this doesnt include re-entry, gravity and the texture for earth is fairly low res. Is something like what I’m describing even possible? This also includes Light Scattering.

3 Likes

If you are trying to simulate all of earth’s aspects good luck getting a NASA PC.

4 Likes

Lol I think gravity is possible if you adjust jump walk and add animations and make couple of scripts that can do that.

2 Likes

Start with what you are describing which is drag force via the drag force equation.

From a similar game with “Realistic” mechanics.

https://wiki.kerbalspaceprogram.com/wiki/Atmosphere

Then build up the reaslitiness by implementing more features which real life has like:

  1. Atmospheric density is non constant and based on elevation
    and more

Eventually you will need a NASA PC like @RatiusRat said lol.

1 Like

Thanks, The part the remains complicated is the A variable. Because if the ship rotates then A will change so I will have to do a bunch of raycasts in the opposite direction of the ship to get A at any given time. Doing this for every part that Touches a mesh is gonna require a nasa PC.

I believe a better way is to use projections, as you should be able to know the orientation of the part and the shape of the part .Size(rectangular prism). You can definitely calculate it into a 2d surface and somewhat calculate the area.

1 Like

Lets say I have a sphere, and I use an ontouched function. Is there anyway I can find the parent of the part that touched it? Example: Sphere ontouched(), local part = partthattouchedsphere. part.size = 10000.

1 Like

You don’t really need a nasa PC. I’f you know how to do stuff like chunk loading then you can possibly simulate the whole earth. But you gon need a god PC to hand all dat in studio LOL

2 Likes