I'm trying to make an engine that is realistic, that increases power according to altitude, but I don't know how to put several functions at the same time, something like (Altitude1000,Throttle0.5)+(Altitude2000,Throttle0.75)
I'm trying to make an engine that is realistic, that increases power according to altitude, but I don't know how to put several functions at the same time, something like (Altitude1000,Throttle0.5)+(Altitude2000,Throttle0.75)
You could use an expression like this:
Throttle * (clamp((Altitude / 5000), 0, 0.5) + 0.5)
It should start at 50% maximum power at sea level and increase until it hits 100% at 5000m.
Also you can check out the engines on this plane if you would like. I did something similar on the engines there.
Edit: upon looking at this again, the code actually makes the power reach 100% at 2500m. If you want a certain altitude just multiply it by 2
@W22w1010 hmm… try use the code above but put a negative in front of the clamp (so it decreases) and a +1 at the end instead of +0.5 (so it starts at 100%)
@Timplanes how do you make it decrease gradually with altitude?
@Zaineman
Guess I'm late lol.
@CrazyEngine No worries, glad I was able to help
@Timplanes Dude, this was exactly the code I needed, thanks so much for giving me this, I'll mention you on my next plane
@CrazyEngine I appreciate the kind words. As far as engine speed vrs altitude, look at my gear warning light. It has speed components in the programming w altitude parameters as well. @Guyfolk helped me with the programming. He is a true expert. I just cut paste, experiment, reverse engineer and test. Z 🤧
I see you seek comfort in the divine?
@Zaineman you are the first thing that comes to mind when talking about funky tree