So I'm trying to make my aircraft's horizontal stab/elevator essentially compress as the plane gets faster, but I'd like it to not compress at all below 350 IAS, I feel like I've tried everything and I just can't figure it out.
Heres the code: (smooth(clamp(-Pitch, (-1+
(IAS >= 350 ? IAS/1000 : 0)), (1-
(IAS >= 350 ? IAS/1000 : 0))), 3.5)-clamp(Roll, -0.7, 0.7)-(clamp(Trim, -0.4, 0.4)))
The actual compression thing works with only the (IAS/1000), but I cant figure out how to stop it from compressing below 350 IAS
PlaneFlightX's solution may be better, but I typically use IAS>x ? Input/(IAS/x) : Input.
In this specific case, the code might look something like this: IAS>350 ? (Roll-Trim)/(IAS/350) : Roll-Trim.
I'm sure you'll have to tweak the Roll-Trim input stuff to your liking, but that's the basis for what I usually do.
One other thing, the game measures speed in m/s by default. If the 350 in this case is in mph/kph/kts then you'll need to convert it to m/s to get accurate results.
Here's a multipurpose converter I like to use.
(Pitch + (Trim * 0.1)) * clamp01(-IAS / 1000 + 1.35)
Just came up with that in my head, may or may not work. Also, something to note, instead of clamping Roll or Trim, multiply it. That way, you have the full range of control input and it's more precise.