Space Engineers

Space Engineers

Not enough ratings
aveBrian's RotorMountedWheelsScript
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
8.284 KB
19 Apr, 2019 @ 9:15pm
1 Change Note ( view )

Subscribe to download
aveBrian's RotorMountedWheelsScript

Description
This is more of a proof of concept than anything useful I feel, but I could be wrong.

This script makes wheels on rotors behave more like wheels on Wheel Suspensions by controlling them the way you would drive any normal ground vehicle. Think tank controls.

Turning right will push the wheels on the right side of the grid forward and the wheels of on the left side of the grid backwards. Of course the amount of power provided to each “track” of wheels is on either side at any given time is, as best I can tell so far, properly controlled depending on relative speed and other considerations.
There may very well be room for improvement and I look forward to feedback on this subject in particular.

Installation instructions
=============================================================================
1. Build a grid with wheels attached to rotors instead of suspensions.

2. Add some kind of ship controller. Could be a cockpit, remote control, or just a passenger seat.

3.a: If you have more than one ship controller, you will need to take control of the one you want to use to drive and recompile the script. This will only need to be done once to let the script know which controller to use for input.

3. Add this script, recompile, and you're done.
=============================================================================

If you want to change anything on the grid, such as the controller or rotors, just recompile the script afterwards to take your changes into account.

Control Acceleration and Braking force by adjusting the Torque settings on the rotors themselves but leave the Braking Torque at zero.

You can set the MaxRPM from within the script itself at the top.

One fun thing, is that this script can take input directly from the passenger seat. This means you don't have to take control of a remote control block. Just take a seat, and drive :)
17 Comments
Kitsu Shadow 6 Sep, 2019 @ 6:34pm 
Can you add support so the script only controls rotors marked as Tank? or something to that effect? I have other rotors on the grid and its conflicting with those.
IAFFO 17 Jul, 2019 @ 10:23am 

seems ideal for my forklift,
Is it possible to exclude some rotors from the work done by the script?
aveBrian  [author] 4 Jun, 2019 @ 1:48pm 
@LauwmaLescoute Try recompiling the script while your sitting in the seat you want to use. That should solve problems like the one you're talking about.

Also, could you tell me which script was conflicting with this one? I want to see exactly where the issue might be. Thanks!
LauwmaLescoute 2 Jun, 2019 @ 12:03pm 
https://image.noelshack.com/fichiers/2019/22/7/1559502006-unknown2.png Only 7 of the 10 rotors are working, and I can't figure why :c
LauwmaLescoute 2 Jun, 2019 @ 4:24am 
Oh I found the Issue, the script is conflicting with the MART script. It could be cool to have only one group of rotor to be affected by the script.
LauwmaLescoute 2 Jun, 2019 @ 4:07am 
The script doesn't work for me, does the rotor have to have a special name ? Or special parameters ?
woostyboy 22 May, 2019 @ 3:23pm 
I'd use it for nice tank controls!
aveBrian  [author] 22 May, 2019 @ 9:37am 
@Splitsie The script uses the seat as an indicator for direction only. It determines the grid layout based on where the rotors are in relation to each other, so that shouldn't be a problem. Try recompiling the script while you're IN the seat. That should take care of the problem.

I uploaded a video of the rig I used to test it.

Let me know if it's still giving you problems. Thanks :)
aveBrian  [author] 22 May, 2019 @ 9:20am 
@woostyboy That is a good point lol. I’m curious though, wheel suspensions are already controllable with WASD controls. Why would you need a script for that?
woostyboy 22 May, 2019 @ 9:14am 
Thanks, would be great. I fear I'd break the wheels on a tank made with rotors if it went off road! :)