-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve gravity #63
Comments
The inverse square law is a phenomena created by the 3d nature of the universe, if you imagine sending rays out acting as light from the origin, the frustum of a camera would take the shape of a rectangular pyramid. If we have a pyramid with side lengths of 3 and a height of 1, the surface area of the base is just 3x3=9. Now if you imagine extending it outwards by a certain amount, the result would be a similar polyhedron, i.e. just a scaled version of the original. Because of that, all edges must be multiplied by the same scalar. So by doubling the height, you also double the length of the side. So while the height is now 2, the surface area of the base is (3 x 2) x (3 x 2)=36. |
Thanks for the 3D analogy. We had a "how" and now we have a "why" too. |
I think we should assign this issue to @Zxynine 🤣 |
I would advise against that unless you want C# code in your lua project lol. Ive never used lua before. Maybe Ill throw some python or javascript in there for good measure. Variety is the spice of life as they say. |
If you know how to speak English you can write Lua If you can program and speak English you are a expert lua dev |
Tweak gravitate system so the goldilocks zone is wider. When getting near a planet it is easy to get too close and fall in or to be too far and not get any meaningful gravitational effects from it. Gravity is based on the inverse square. During the last meeting we discussed a linear gravity dropoff would give you a wider band around a planet that could slingshot your ship without providing too much or too little gravity.
The text was updated successfully, but these errors were encountered: