Space Engineers

Space Engineers

209 ratings
Rotor Torsion Spring
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
12.036 KB
9 Aug, 2018 @ 7:06am
23 Sep, 2019 @ 5:52pm
3 Change Notes ( view )

Subscribe to download
Rotor Torsion Spring

Description
This script is for simulate the torsion spring, with the rotor.

How to use it ?
1.Paste this script in the PB.
2.Write "spring" in the custom data of the rotor, that you want to be a torsion spring.
3.Wait for a while. Or press "Recompile" button of the PB.
4.Change the variable of the custom data in the rotor.

Variables
BaseTorque : The rotor always has torque of this value.
TargetAngle : The rotor will try to return to this angle. This value is degree.
SpringConstant : As the angle difference from TargetAngle increases, the torque of the rotor increases according to this value.
Kp Ki Kd : PID gain. It affects the speed with which the rotor returns to the TargetAngle.
Popular Discussions View All (1)
5
17 Mar, 2019 @ 11:34am
Script With Hinges Mod
Joshuawood
78 Comments
Jetzilla 23 Jan @ 4:02pm 
does this work with hinges?
Jack Schitt 30 Sep, 2024 @ 8:37pm 
What exactly is Kp, Ki, Kd, and PID? More info please and thanks!
Acirno 27 Oct, 2023 @ 1:53am 
I would love a piston spring but not sure it is even possible, at least not like this.
Joe Wick-ed 11 Oct, 2023 @ 3:56am 
any piston spring scripts?
condottiere 17 May, 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 17 May, 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 8 May, 2023 @ 12:31pm 
how do i make the wheels move while using this script
MedvePapus 5 Mar, 2023 @ 12:46am 
any tips on stopping the bounce?
Blitz 7 Jan, 2023 @ 8:30am 
is it possible to use this script to automatically orient to the gravity well? Like an auto leveler?
Booker DeWitt 11 Aug, 2022 @ 8:13am 
This script is awesome, would be great if you could adjust the values based on the ships weight!