-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add airDensityDeclineRate to config system #1845
base: master
Are you sure you want to change the base?
Conversation
By consulting the data I think the realistic air density drops by about half every 6.7km, but old file uses 0.5km so planes can never fly so high before.
Two things:
|
for 1: cubicChunks players can set airDensityDeclineRate larger to allow them flying higher, for 2: make it global means just make it a constant? |
automatically adapting world height may make them confuse about how to calculate this value, |
also for future 1.17+ versions whose height limit is much higher, i believe most players still prefer 1:1 climb height, whether keep getWorldHeight in or not depends on you lol |
if i may interject: i would suggest scaling the density decay rate by the current speed factor set in mtsConfig. Allowing for a proer decay based on the speed being scaled down. since speed factor defaults to 0.35. you should only be able to fly 0.35* the height it really would if you get where im going with this. i do the same thing when configuring missile speeds |
emm I think that's not intuitive enough either, and the speedfactor was only supposed to be a compromise on computer performance, I don't see the need for it to affect flight altitude |
Agreed. speed factor is indeed only for computer performance, and is meant to laterally slow down planes and cars to not over-speed in the world. Actual max altitude should remain un-changed. |
I would like to keep the world height in there. If the world is higher in 1.17+, that bit of code will handle it. I'd like for planes to "cap out" at specific altitudes a little bit above the world. The idea being that jets will fly higher than prop craft. And some prop craft won't fly barely above the clouds due to their weaker engines. If someone wants to adjust the config to make planes fly super high, then they can, and that's what the config file is for. That being said, you have me curious, what's the height of the plane in the photo, what's the world max height, and what's the height of the clouds? Is that a mod that moves clouds super high up? |
the plane can fly higher than 10km with value 6700, wold height is just 256 but clouds of shader can be much higher, the cloud height is between 1km and 5km(i dont remember the exact number), also with a mod(CensoredASM) fixed optfine bug the plane wont disalpear higher than 256 with shader emm i dont understand why to make planes cap out just a little higher |
Ah, I wasn't aware that that's where clouds were. If that is the case, how about this: we change the function to a simple logarithmic one like how it is in real-life, and just make the config be where air density is 0? Far simpler to do and understand and code mathamatically. Linear function would be like this: As to why I did that, the thought process was that if you had a heavy plane loaded up, you'd struggle to get altitude since you'd not have the lifting potential required due to the low air density. Plus, planes fly better faster up in the higher, less-dense, air due to lower wing forces. But honestly, it's probably easier from the standpoint of end-users to just set the max flight height super high and leave it at that, rather than trying to give nuances to the physics. @conman180 you're a pilot, thoughts? |
this sounds better, and i find this: https://www.grc.nasa.gov/WWW/K-12/airplane/atmosmet.html |
By consulting the data I think the realistic air density drops by about half every 6.7km,
![2024-08-31_17 44 46](https://private-user-images.githubusercontent.com/111645282/363476763-4a4e1ec3-5c9b-45e0-88d5-0b6a785aac97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Njk0MjMsIm5iZiI6MTczOTU2OTEyMywicGF0aCI6Ii8xMTE2NDUyODIvMzYzNDc2NzYzLTRhNGUxZWMzLTVjOWItNDVlMC04OGQ1LTBiNmE3ODVhYWM5Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQyMTM4NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMTEwZDYxMzk2OWNhZDRjYmRmMTZhNzA3ZGIwNmI5YTZiMGUwMjQ5ZGY5OThkMTM2OTRmOTQ5NWMwMzBjZTg4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.GQnbz2o-YXK3gx-SqFoheupWZfGeG1S1Yg9Y_tXFioU)
![2024-08-31_19 44 43](https://private-user-images.githubusercontent.com/111645282/363476773-35224f13-7b6a-4b63-ac24-0c250e417616.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Njk0MjMsIm5iZiI6MTczOTU2OTEyMywicGF0aCI6Ii8xMTE2NDUyODIvMzYzNDc2NzczLTM1MjI0ZjEzLTdiNmEtNGI2My1hYzI0LTBjMjUwZTQxNzYxNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQyMTM4NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZDZiMGFjZWUzY2MyMmM3OTJkYzQ4NmNlNTk0NDJiYTNhZjU2YzNhZjNkYjYwZjY5ODM3YTY4ZTFlODJlNjdlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.LLKlfiWR_eA2JrcWerMdJOjglIobi3fSxBNgUFjm9do)
but old file uses 0.5km so planes can never fly so high like in reality.
after improving climb porformance we can fly higher, having more fun with shader or something else