Space Engineers

Space Engineers

Rotor Torsion Spring
78 Comments
Jetzilla Jan 23 @ 4:02pm 
does this work with hinges?
Jack Schitt Sep 30, 2024 @ 8:37pm 
What exactly is Kp, Ki, Kd, and PID? More info please and thanks!
Acirno Oct 27, 2023 @ 1:53am 
I would love a piston spring but not sure it is even possible, at least not like this.
Joe Wick-ed Oct 11, 2023 @ 3:56am 
any piston spring scripts?
condottiere May 17, 2023 @ 5:25pm 
@MedvePapus: In the first video, Sunoko comments they may need to increase base torque on their example design, which is constantly bouncing.

@Blitz: Probably easier to just use one of the leveller scripts. Pesticide has some fairly lightweight ones. Gravity Aligner and Leveller.
condottiere May 17, 2023 @ 5:17pm 
@the young biker: Probably want to use Whiplash's Subgrid Wheel control script. Subgrids will never work perfectly like a single grid with wheels, but that script does an excellent job as far as it can.
the young biker May 8, 2023 @ 12:31pm 
how do i make the wheels move while using this script
MedvePapus Mar 5, 2023 @ 12:46am 
any tips on stopping the bounce?
Blitz Jan 7, 2023 @ 8:30am 
is it possible to use this script to automatically orient to the gravity well? Like an auto leveler?
Booker DeWitt Aug 11, 2022 @ 8:13am 
This script is awesome, would be great if you could adjust the values based on the ships weight!
Zen_Is_A_Menace May 20, 2022 @ 8:47pm 
@ MyxRSC I also have it working with hinges. [ https://steamcommunity.com/sharedfiles/filedetails/?id=2810634200 ]
Here is a little screenshot.
Acirno May 5, 2022 @ 7:23pm 
I have it working with base game hinges just fine.
MyxRSC Apr 23, 2022 @ 10:23am 
does this work with the base game hinges
Eevee Sep 24, 2021 @ 12:38pm 
can you fix the script so that you only adjust the programing block? the programing block replaces the custom data "spring" that you need to set in each rotor and then if you change something in the programming block you have to then change all the rotors custom data again to spring since it wipes the data. if the script was easier to manage that would be great, thanks
cy-one Sep 15, 2021 @ 8:24am 
No matter what I do, the script doesn't seem to use the values set in the Custom Data.
In this case, base torque is 100k and spring is 50k.
Yet, the torque is roughly around 14k

Why?
User5876 Aug 2, 2021 @ 3:34am 
Awesome script, man! This might be just what I am looking for! I just have one quick question: does this work with the new hinges added to vanilla Space Engineers, or does it need to be modified to work?
Church.exe Dec 30, 2020 @ 8:23am 
two questions, one does this work with hinges, and two how could I change the target angle using a timer for instance? (assuming it is possible to change it using an argument that is.)
Zero Oaths Sep 22, 2020 @ 12:39pm 
I may be lazy or just not have noticed, but does this mod or can this mod work with pistons as well?
Gummihemmi Jul 27, 2020 @ 1:07pm 
i am not able to control the wheels through the rotor is any fix for that?
Kithsakhai Jul 20, 2020 @ 7:20pm 
no matter what I set the base torque to, or the spring constant (in the program block), it constantly seems to use default values to, any idea how to increase these? I need the base torque to be 500kN, and the max torque ~2MN for my mobile base
mr_sebitor (twitch) Jun 25, 2020 @ 6:54pm 
the new hinges work with this, yeah!
Walou Jun 14, 2020 @ 10:37am 
whatever i change base torque to it doesnt want to change the rotor's torque.
Didas72 Mar 27, 2020 @ 8:05am 
Hey, I'm working with a script to automatically change settings on all rotors for this. Is it possible for you to implement a run argument to refresh the settings? Thanks a lot!
chrisw Mar 14, 2020 @ 10:42am 
I cant seem to get the script to find any rotors
Thieme Jan 29, 2020 @ 11:40am 
@Vorg,Yes the small grid rotor's are not strong enough by themselves.
I also understand what @Gorbadon meant, if you have a grid and catch a lot of air. It would be nice if the rotor spring could drop lower then the desirable set height for the spring.
Vorg Jan 29, 2020 @ 10:45am 
Thieme, are you using 1x1 wheels as spring bump stops for the travel?
Thieme Jan 26, 2020 @ 8:21am 
I guess this is not getting much attention anymore but maybe someone reads this and can help.
I love this script, I always used to avoid rovers because they break so easy but this script (and the wheels mod) made me want to build one. I used it to make suspension arms on my rover https://i.imgur.com/UURWrT2.jpg . I am wondering if there is a easy way to manipulate the information written in the custom data.
I would love to be able to change the "targetangle" by using PB arguments. Say make a Low, Medium and High stance for my vehicle (10/-10, 20/-20, 30/-30) ((+ numbers for left side of vehicle and - for right side))
SnowyRay Jan 18, 2020 @ 4:07am 
@Gorbadon You're an Engineer. Fix it yourself :P

But seriously, a solution would be to use small 1x1 wheels as buffers to keep the spring from moving too high, since they'll just bounce off whatever block is above em.
Darkaiser Jan 5, 2020 @ 7:36am 
Is there an upper limit to the settings? I'm trying to use this on a really big rover but I think my settings are off. I've seen you change the setting in the video but the numbers are too small to read. Thanks in advance.
Gorbadon Nov 4, 2019 @ 4:59pm 
Realy like your script, but for my current project I would need a slightly different mode of operation.

Would it be possible to add the ability to have it work like a spring in one rotational direction and only apply a rotation speed limiter (dampening) in the other direction?
Titan Nya Oct 8, 2019 @ 12:33pm 
Found a kinda working design probably really over complex but that work well with another script with an overloaded and oversized test rover... not sure about the suspension design though...

Well now that i found how to configure it in a good enough way, time for different suspension that don't end up touching that much the ground and just need to make more test...
Titan Nya Oct 6, 2019 @ 4:38pm 
Quick question as i'm trying differents things for making automatic rover (just realised i've 3 scritps that allow more advanced autopilot and never used them before) and i'm trying this script for better handling of the terrain...

The things i'd like to understand is exactly what are the Kp Ki Kd doing exactly, it affect speed of rotor return in what way? and would changing it make the rotor going back and forth stop?

and the Decay and DefferencialThreshold?

Well so far i'm just testing/learning new scripts so my designs are probably really bad to even test in a normal usage way...

Well just realised i've got another mod that could change the design of the whole things so need some test... and a night sleep to get some ideas...
AlyCrafticus Oct 4, 2019 @ 5:52pm 
So I am working on a land crawler and was wondering, how do I increase the reaction time of the rotors returning to their base angle? I am using this for custom suspension but it reacts really slowly and seems to "swing" back and forth? I have uploaded a blueprint of it if that helps?
Lucifer69 Sep 20, 2019 @ 5:57pm 
Enable this script then turn on inertia dampening. All Hail Clang!

Seriously though, I love this script and it offers quite a bit of customization to get things perfect. There doesn't seem to be an upper limit on the size of ship as long as you have enough wheels to actually move the dam thing. I had a few friends help my build a 50 million kg cube on a bunch of wheels and it worked just fine, until one of them turned on inertia dampening just to see what would happen...
Joshuawood Sep 19, 2019 @ 6:46am 
I have a problem with this rotor The spring settings are:
https://i.imgur.com/oscwFyL.png

However the rotor is doing this:
https://i.imgur.com/pBRfv3i.jpg

Clearly trying to get to a higher angle not the set 230 degrees. why?
Joshuawood Sep 19, 2019 @ 6:44am 
I have found it works flawlessly with MASSIVE vehicles 10 millionKg+ as long as you have enough wheels to actually get it around
ExCaedibus Aug 6, 2019 @ 12:21pm 
Thanks @DOOM DAVE for your answers; I will try when I return to the moon. :)

What I wanted to ask... how well will this handle a 4,5 million kg ship which got wheels attached? If onyone tried a similar vehicle: What could possible starting values for config be?
TamTam2204 Jul 29, 2019 @ 6:05am 
@Effrenatus that is what the PID settings are for.
I'm pretty sure Kp is overall gain (set this according to power to weight ratio)
Ki is integral gain (I can't remember what it does)
Kd is derative gain (it is the part that reduces rocking, but lenghtens reaction time)
qspin2win Jul 23, 2019 @ 6:23pm 
@OctoMoose

Ive found that if share inertia tensor is on this script turns into a clang summoner. Try turning that off
OctoBooze Jul 21, 2019 @ 1:44am 
Can't get this to work. I'm doing things exactly like in the video but all I get is rotors that spin at max speed imploding everything that I try this on. It goes like this: I set the rotor to its ideal position or near it (1-3deg off), set up the torsions and as soon as the rotor hits the intended angle, it launches itself with a force of a thousand suns trying to catch the angle again as fast as it can sending itself to spin endlessly.
What am I doing wrong?
ExCaedibus Jun 8, 2019 @ 12:24pm 
Hi,

my vehicle is shaking, how can I reduce that?
It seems, setting Spring constant very high influences that, is that right? I am afraid I ruin some other behavior with that. What do the numbers Spring Constant and below do exactly?
Please give me a hint what I can try.... Thank you!
woostyboy May 24, 2019 @ 1:34am 
RageRunner, that vehicle is EPIC!!! Very clever!

Think I might try making some landing gear with this script, give a bit of dampening for the *ahem!* 'heavier' landings... :)
Greavesy399 Apr 28, 2019 @ 3:57am 
Is there any way to make the rotors return to target angle with speed as mine seem to do it really slow, even with the rotor torque maxed, i played with some Kp Ki Kd values but nothing changed. TIA
uglydisease Mar 17, 2019 @ 11:41am 
I found a great use for this script is creating a wreckage hauler, by attaching a spring to landing gear you can make it much easier for your ship to be able to grab some scrap you are trying to haul back to your base, because your ship doesn't have to be oriented perfectly with the wreckage.
DANgaming Mar 9, 2019 @ 2:35am 
@rangerunner
Very nice behemoth, definitely the largest i've seen. Could you snap another video of the undercarriage? I'm trying to learn how to make the suspension. My problem seems to be not enough spring resistance and my rover bottoms out and explodes. Could you also snap a pic of the suspension rotor's custom data?
I really appreciate the help (^_^)
RangeRunner Mar 9, 2019 @ 1:57am 
I think I own the record of the largest vehicle that uses this script XD
https://streamable.com/b6msj
RangeRunner Mar 7, 2019 @ 8:13am 
My land crawlers will no more struggle from the uneven terrain!
Thank you so much good sir!!
CTH2004 Feb 20, 2019 @ 6:56pm 
Awsome!
SGT_MAJOR_FISH Dec 24, 2018 @ 6:51am 
Is there a method to increase the maximum torque the rotors can supply? values below 30 MNm are not strong enough for the ship im working on