alright. Here is my take on this. You better sit down and listen to this properly, as this is gonna sound like rocket science lol.
Magnitude
is also known as F
, or Force
… which is basically the Force of Gravity. Take a look at this equation i just made:
G
should stand for the Direction of force in a straight line. Keep this number as
6.67 × 10^-11
as that is what it is in real life (without the kg^-2 and m^2)
Next, take the two masses of both objects, M
being the larger mass and m
being the smaller mass. For instance, The Earth’s mass would be M
, while the moon’s mass should be m
. To determine this, there should be a property where you can get the mass of a part. It should be read-only and greyed out.
r^2
is the distance between the centers of the objects. If you center your LineForce
in the middle of the planets (like in the video above), you should be able to determine the distance by the properties tab for the LineForce. There should be a property that you cannot edit called TotalLength
or something like that. It is greyed out.
Since we are leaving out m^2 of G
, we need to multiply that in at the end.
So all of this is to determine the Magnitude only. Lets say the Earth mass is 5, and the moon mass is .5. The distance between the centers of the objects will be 10 studs. Because of this:
1 stud is equal to 5 cm. so we need to convert that into m. This is what it would equal:
500cm = 5m
Now lets put it into a script.
LineForce.Magnitude = (((6.67*10^-11*5^2)(5)(.5))/(10^2))
This is the answer:
4.16875*10^-11 or 0.0000000000416875
This is not right. Remember that kg^-2 ? we need to raise everything by -2. This is what we get:
5.7542443171*10^20 or 575424431710000000000
we now need to divide it by 10000000000 because a stud is 10000000000 of a kg^2.
The answer:
5.7542443171*10^10 or 57542443171
So this is the full script:
LineForce.Magnitude = (((((6.67*10^-11*5^2)(5)(.5))/(10^2))^-2)/(10000000000))
Here is the script without values:
LineForce.Magnitude = (((((6.67*10^-11*5^2)(M)(m))/(r^2))^-2)/(10000000000))
anyways, i hope you had fun reading this!
read this: Refer your moon as a satellite: Index of /~pfrancis/roleplay/MysteryPlanet/Orbits this is some extremely helpful info
Example
Consider a tower-block 1000 km high, protruding above the Earth’s atmosphere. Imagine that you are dropping something off the top of this tower. If you just drop it (ignoring the rotation of the Earth), it will fall straight down, burning up in the atmosphere near the base of the tower.
But now, give it a sideways push as you drop it. As it falls, it will continue to move sideways, until it burns up. The harder you push it, the further away from the base of the tower it will land.
If you push it hard enough, it will miss the Earth altogether – by the time it’s fallen 1000 km, it will have moved so far sideways that the Earth is no longer below it. If you’re clever, you can get it moving in a circle around the Earth – perpetually falling but never hitting the bottom.
psst. I am young like you too lol. I have been studying physics for about 2 years. If something is off, then it might be the conversions with Roblox to real life distance and weight.