basicAttitude

This is an extremely basic flight pitch monitor, implemented as a simple LDB plugin. It does a rough calculation to turn the game's pitch value into a value in degrees. It may not be 100% accurate, but it's probably close enough.

The text is colored green (for pitch-up) or red (for pitch-down), the colors become more intense as your angle approaches 90°.

While this is very usable, I intended it largely as a proof-of-concept, to encourage others to create more interesting and robust implementations.

basicAttitude now also includes a display for "relative horizontal velocity". This attempts to show how fast you're moving horizontally, while flying. Essentially, I take the speed returned by the game, and adjust it based on your current pitch. Note, this only works while flying, as pitch values are meaningless while on the ground. If you're not flying, it will still show a value, it'll just be your abstract relative speed. And, of course, speed is displayed relative to running (which is 100%).

Originally posted by Bilb Seems pretty accurate to me, and if it's not why so many decimals?

Well, the main issue is that the return from GetUnitPitch() is a float. I'm rounding that, and doing some work to convert it into degrees, so there may be some precision and accuracy lost in the process. It's difficult to know exactly what numbers correspond to.

For the purposes of maintaining level flight, it should actually be fairly accurate, as perfectly level flight is a known value to compare against.

That said, the specific number of decimal places shown is fairly arbitrary. It just felt right, and looked nice to me.