Space Engineers

Space Engineers

Not enough ratings
RotorAlign
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
7.190 KB
27 Aug, 2020 @ 4:18pm
25 Sep, 2020 @ 11:21am
3 Change Notes ( view )

Subscribe to download
RotorAlign

Description
for tunnel-boring trucks, etc.
basically keeps a rotor or hinge aligned so a remote control on the joint will have no roll, faces upright.
The PB with the script should be on the arm to be aligned, along with the remote, both on the rotor-part ('top') grid, so the rotor/hinge/advancedrotor itself should be on the parent grid, everything else on the child grid. Running the script manually will toggle its on/off state, so you can bind "run" with empty argument to the G toolbar to easily turn it on and off; just disabling the PB will leave rotor with whatever velocity script last instructed it to have, so is not a clean recommended way to turn off the aligning, so don't simply turn the PB off!
Multiple arms can be controlled separately, even in a chain, at risk of invoking Clang's wrath, but each joint of the arm currently requires its own script and blocks.
New feature:
If set remote's CustomData to "waypoint", will use direction to the remote's currently *active* named waypoint target instead of gravity up direction for alignment
new feature: if set remote's CustomData to a GPS location string of format "XXX:YYY:ZZZ" will do similar but for a custom target
example1
example2
31 Comments
p3st|cIdE  [author] 13 Jul @ 10:02am 
my Drill Align example truck still works, so I guess so. It should be showing a red aligner mark on the PB and my logo, if you look in the PB debug log it should say "RotorAlign by P3st align" if it doesn't say "align" but "stop" or some other text, try Run PB again. It should log any serious errors about not finding needed blocks. No need to name anything.
Beat 13 Jul @ 8:08am 
Does this script still work? Because i tried it. Attached a Remote and the Script block to the "top" part and Ran the script. It doesnt seem to do anything tho. Do i need to rename anything or did i set it up incorrectly?
p3st|cIdE  [author] 6 Jul, 2024 @ 4:01pm 
I seem to have been unsubscribed to some threads, sorry guys, should be fixed now? :steamfacepalm:
Virt 10 Apr, 2024 @ 3:23am 
You are my Hero.
kennet0508 27 Jul, 2022 @ 3:30pm 
Ohhh WOW! This is awesome!

Im making a Rollcage inspired rover, where the cockpit is always facing the ground, i tried gyro alligners, i tried anti roll scripts, leveling script, i tried gravity leveling by adding artificial mass. but this! this script was just jackpot
Judge Kronos 5 Mar, 2022 @ 12:05pm 
@KeithFromCanada - Its a script m8. you place is in a PB
'KeithFromCanada' Olson 1 Mar, 2022 @ 11:07pm 
Hmmm... I just tried to add it but the SE mod browser doesn't see it.
Fimbultul 17 Aug, 2021 @ 3:29pm 
Is there any way to get the display shown in the PB in a screen in a cockpit?
Awu 12 May, 2021 @ 10:01am 
oh never mind, i could add another rotor after the "alignment" rotor and ajust it to 10° :D that was bad :D :D :D
Awu 12 May, 2021 @ 7:54am 
Great skript! works great!
But i do have a suggestion.
Can you add s.th. to build a slope? like aligne rotor and add 10° for building an perfect slope ?