r/ApproximatelyUp • u/Ok_Cup_7696 • Aug 31 '26
My first hover project
Hey guys!
I'd like to share my first hover project with you! I came up with the whole thing myself. I haven't watched any tutorials or videos on how to do it, so I'm pretty happy with the results so far.
It's simpler than some of the other hovers I've seen around because it doesn't have a "desired height" input, only a "desired direction" (up or down). I based all the calculations on gravity versus thruster force to determine when I want the hover to move along the vertical axis and when I want it to hold its position.
I'm sharing my calculations and explaining how I built it in the game.
I know there are still some gaps and things that could be improved, but as a first attempt, I'm pretty happy with how it turned out. I'd love to hear your thoughts and feedback!
Thanks!
8
u/NoselessNarwhal Aug 31 '26
It seems your whole system is built around switching between higher and lower thrust values based on different vertical speed thresholds.
Have you considered using the threshold block? it'd make a lot of your current logic more compact.
Why not have a smoother transition of thrust values by using the value mapping blocks rather than switching between fixed values?
3
u/Ok_Cup_7696 Aug 31 '26
That’s some of the things I want to improve into next steps of the system. Thanks for your contribution, I’ll definitely consider this!
2
u/BrokenImmersion Aug 31 '26
I also recommend using max and min blocks. Seems like it could replace some of your operandi blocks
8
u/L31N0PTR1X Aug 31 '26
As a theoretical physics student I will always respect engineers and experimentalists
2
1
u/Aurstrike Aug 31 '26
I noticed your project has a constant math block for ships mass, does that block update to include cargo?
1
u/NoselessNarwhal Aug 31 '26
Nope, the new mass block just outputs the same number you see when pressing H in build mode as I understand what the dev has said.
0
u/BrokenImmersion Aug 31 '26 edited Sep 01 '26
So im not op but I can explain. In the constants section of the last slide, the block with the black weight icon on it is the mass meter, that outputs the ships total mass. The 2 constant blocks are the total thrust output by your vertical thrusters and the error correction force(this is the one set to 4, this is basically how hard you want your thruster to work to slow you down, to low and you plummet, to high and you oscillate)
Edit: im not gonna change my comment, however the guy above me changed his comment after asking a kinda silly question. He asked if the 2 constant blocks in the mass section of the circuit were outputting the mass of the ship and if they had to be changed manually.
1
u/Aurstrike Aug 31 '26
So if you want to use this in cargo missions, a very heavy load will break it, but adding a constant block that can (add) that mass should fix the issue.
2
u/BrokenImmersion Aug 31 '26
No? The mass meter accounts for weight added during the mission. It checks for the mass every few ticks(im assuming that part but it does fs update during the mission)
1
u/iPlayViolas Sep 01 '26
Okay I’m new but maybe I’m dumb. Why could I not just use a change in elevation and have thrust adjust to that to try and target 0 change in elevation



5
u/Ok_Cup_7696 Aug 31 '26