Space Engineers

Space Engineers

评价数不足
aveBrian's RotorMountedWheelsScript
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
8.284 KB
2019 年 4 月 19 日 下午 9:15
1 项改动说明 ( 查看 )

订阅以下载
aveBrian's RotorMountedWheelsScript

描述
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 条留言
Kitsu Shadow 2019 年 9 月 6 日 下午 6:34 
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 2019 年 7 月 17 日 上午 10:23 

seems ideal for my forklift,
Is it possible to exclude some rotors from the work done by the script?
aveBrian  [作者] 2019 年 6 月 4 日 下午 1:48 
@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 2019 年 6 月 2 日 下午 12:03 
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 2019 年 6 月 2 日 上午 4:24 
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 2019 年 6 月 2 日 上午 4:07 
The script doesn't work for me, does the rotor have to have a special name ? Or special parameters ?
woostyboy 2019 年 5 月 22 日 下午 3:23 
I'd use it for nice tank controls!
aveBrian  [作者] 2019 年 5 月 22 日 上午 9:37 
@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  [作者] 2019 年 5 月 22 日 上午 9:20 
@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 2019 年 5 月 22 日 上午 9:14 
Thanks, would be great. I fear I'd break the wheels on a tank made with rotors if it went off road! :)