How to create an artificial horizon using a widget and from a third-person perspective
Can you give an example or a schematic of what an “artificial horizon” should look like?
An artificial horizon, like in an airplane or a jet fighter, where the artificial horizon should show how the airplane straightens out when it tilts.
Make this setup in your widget designer:
And in the widget’s tick - make this:
And you should be ready to go ![]()
Let me know how it went.
P.S. I might have forgotten to take into account the camera roll when offsetting the horizon. I need to run but I’ll get back to you with a correction.
How about changing its height when the camera is not aligned with the Y-axis?
Have you tried it? It changes the height based on the camera’s vertical angle.
Here is an updated version but the math gets hairy pretty fast. I’m almost sure that this is the way the camera projection works but I think the FoV angle is incorrect. Anyway, this is as close as I can get you for now. Try it out and try to understand the trigonometry behind it.




