Trailmakers
Twistking 20 Jul, 2020 @ 8:32am
option for linear hinge control
Hinges (or maybe all servos even) seem to react exponentially to control input. This is probably to help with steering on a gamepad where it is difficult to get fine micro control.

This is a problem however when you combine different control inputs with logic blocks to control the same servo. If yu have one control weighted with 0.8 and the other with 0.1 the smaller input can be a major factor on the control output, because it does not scale in a linear fashion, because 08+0.1=0.9 is a very strong control output, while 0.8-0.1=0.7 is very minor control output on exponential scaling.

it would be nice to have a checkbox where you assign control commands to switch between linear mode or exponential mode.

thanks!
< >
Showing 1-7 of 7 comments
alvaroping1 20 Jul, 2020 @ 9:07am 
that only happens on hinges and it's a known bug, it has been in the game for a long time because it's a hard bug to fix without breaking a lot of vehicles, on servos 0.9 is 90% of the angle set on the servo while 0.7 is 70%, hinges are the only blocks in which the scalling is not linear
Twistking 20 Jul, 2020 @ 11:31am 
ok. thanks for the info.
are you sure though, that this is not a feature? because if you use the hinge for "basic" steering (which is probably it's #1 usecase), it is very helpful to have this exponential output.
if they simply make a checkbox on the hinge advanced options, you could make it work with old creations...
alvaroping1 20 Jul, 2020 @ 12:28pm 
completly sure, it didn't work like that before they changed the hinges to rotate up to 90 degrees (60 was the max previously) and added the steering help, the devs have also acknowledged it as a bug in the past. Also, when you tested it, did you have steering help set to 0? since that reduces the turning speed the faster you go, and in the tests i have done hinges have always moved at a constant speed when just put verticaly with a block on top
Twistking 20 Jul, 2020 @ 3:03pm 
ok. thanks again.
i think i had steering help at 0, but not sure tbh. If it's an acknowledged bug, i'll just accept it and wait and see what the devs will come up with.
I know this is an old post... but I am working on a logic heavy craft and ran into this problem, and it kinda messes up the section. I'm wondering if anyone knows a way to, using logic, cancel out this exponential? i tried for around an hour but could not get it. I have an accumulator going from values 0-1 controlling a concave distance sensor array, and I want it to automatically focus based on range. I cannot do this with exponential hinge control :( Thanks for any help!
I actually figured it out the next morning, taking the square root of your 0-1 value, and taking the square root of that again gives at least a good enough approximation to cancel out the curve. also i was wrong, it is not exponential, but rather appears to be a cubic function.
Alex, you can get a pretty good approximation by squaring your value by 0.25
n^0.25
< >
Showing 1-7 of 7 comments
Per page: 1530 50