Scrap Mechanic

Scrap Mechanic

TakingFire May 4, 2017 @ 5:12pm
WASD to Tank Steering
I've done it before, but it was a giant mess of criss-crossed logic, and I can't replicate it.
Anyone know a simple way to covert WASD to tank steering?

W - Both sides spin
S - Both spin backwards
A - Left side shuts off, right keeps spinning
D - Right side shuts off, left keeps spinning

EDIT: I have already converted steering and throttle to sensor output. I just need the logic.
Last edited by TakingFire; May 4, 2017 @ 5:18pm
< >
Showing 1-8 of 8 comments
Pitchforque May 5, 2017 @ 6:21am 
Add me, I'll work with you on it some time. I've done this using an A/D sensor but without using a W/S sensor. My tank design has 10 wheels, 5 on each side, each wheel is attached to 3 bearings, so 30 bearings total which means you need 6 engines. I can't remember how it all hooks up but I can spawn it into a world if you want to take a look.
TakingFire May 5, 2017 @ 1:20pm 
Okay. To add, I don't need reverse, as I do believe that is actually impossible to do.
use a suspension glitch for steering, the rest is easy.
Harry Tottle May 17, 2017 @ 9:26am 
Can you share how you did map the directionnal ZQSD to logical entries ? Very curious, and did not succeeded yet.

Edit : WASD (yes I'm in azerty)
Last edited by Harry Tottle; May 17, 2017 @ 9:27am
TakingFire May 17, 2017 @ 4:32pm 
I did succeed, with help from Petrataur, and the reference build will be on the workshop tomorrow.
Pitchforque May 18, 2017 @ 9:19am 
Harry, sounds like you need one of two things:

Squared provided the actual (mechanical) parts which convert W, A, S, and D to individual signals so that a seat can turn on 4 different gates.

What I provided is the part that comes after that and only needed for tank steering (where your wheels don't turn), which is reading those 4 signals and given whatever combination, activating 4 different gates assigned to left-forward, right-forward, left-backward, and right-backward. For example W activates left-forward and right-forward, or holding both S and D will only activate left-backward, etc. It's only 8 gates total and should be a part of the workshop item like Squared said.

Anyway if it's that second part that you need feel free to add me and I'll show you how to connect it up.
suicidal.banana May 18, 2017 @ 2:24pm 
You make a little bar that sits on a bearing, wire the bearing too the steering seat, now use some sensors to determine wich way the bar is beeing turned, and use the output of those alongside some and/or gates to drive your wheels
Robdop914 Oct 3, 2019 @ 4:09am 
Last edited by Robdop914; Oct 3, 2019 @ 4:10am
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: May 4, 2017 @ 5:12pm
Posts: 8