Stormworks: Build and Rescue

Stormworks: Build and Rescue

[1x2] Ackermann Steering
19 Comments
GrumpyOldMan 31 Aug, 2020 @ 6:33am 
Flipping still happes, only on the rearmost wheels and only when steering to the right, at ~0.4 steering input:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2215429636

On certain configurations the flipping happens even earlier, with the wheels ~-20 blocks for the y coordinate.
Tajin  [author] 31 Aug, 2020 @ 2:34am 
Yeah I don't see much point in using an inverter when I can just place the wheels right.

The controller here is updated btw. so the flipping around shouldn't happen anymore.
GrumpyOldMan 31 Aug, 2020 @ 2:21am 
Guess I solved it, in your vehicle example you're using the old wheels which don't need to invert the steering axis for the left hand wheels, this got me confused so I assumed the formula took care of inverting the axis on its own, depending on sign of the x input.

Simply add an inverter for the left hand wheels, solved it.
Rear wheel axle still flipping around at full inputs.
Tajin  [author] 27 Aug, 2020 @ 8:43am 
The example vehicle is setup correctly but I see what you mean with the rear wheels flipping around.

That is actually caused by the steering limitation the devs put in, I'll fix it.
Aside from that though, I see no issue there.
GrumpyOldMan 27 Aug, 2020 @ 7:58am 
I'm confused about how to set this up.
In your other workshop upload (the one with the vehicle) it says:

X position of the wheel relative to the desired center of rotation (+ right, - left)
Center of rotation? Your comment recommends the center of mass, but the results from using COM were weird.

So I assumed you meant a point outside of the vehicle, an extended axis from the COM to the vehicles side, when that desired center of rotation is 9 blocks left, 3 block behind the wheel I enter 9 for x and -3 for y?

If I set it that way I still have to invert the signal going to the left wheels to make the result somewhat symmetrical, while the steering seems to be off to one side, having a wider radius than when steering in the opposite direction.

Even with your default workshop example vehicle the steering seems wonky at best with rear wheels flipping at opposite sides with full steering to either side
FAlty75 26 Aug, 2020 @ 8:54pm 
thank you for this
Tajin  [author] 30 May, 2020 @ 3:14am 
Makes no difference really.
FacePwn64 29 May, 2020 @ 7:13pm 
After doing some testing, I believe the devs clamped steering angle to one radian or some approximation of it in each direction. I'm not sure if this affects your formula's calculations.
FacePwn64 29 May, 2020 @ 2:41am 
That looks beautiful. Another microcontroller is suggesting 70 degrees, ,and I'm not entirely sure if or how his formula may be different from yours.
Tajin  [author] 29 May, 2020 @ 1:18am 
It was actually almost unlimited for a while, thats how this thing came to be: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1478976292

Not sure how much it is now but that should be easy to test.
FacePwn64 29 May, 2020 @ 12:58am 
What have you determined to be the maximum steering angle of wheels?
Tajin  [author] 28 Jan, 2020 @ 10:20am 
You're welcome.
If these things somehow help to increase the average quality of workshop creations, then I'm more than happy with that.
Kextin 28 Jan, 2020 @ 10:13am 
A long time ago Tajin helped me out on some pid stuff. he pointed me to some of his work. now i use his work in almost everything. To Tajin thank you for helping the stormworks community!
Host 26 Dec, 2019 @ 10:12am 
Why does it limit steering to 0.4605 when steering left, but 0.9173 when steering right?

I have configured it for two front wheels with the same X and Y (with a minus sign for the X of the left wheel). Input is coming directly from the seat and it's not trimmed.
Tajin  [author] 28 Sep, 2019 @ 7:35am 
Not sure if there is any really good term for it. It isnt really the center of turning as that depends on the amount of steering but it is the center of what the equation uses to determine the steering angle of the wheels.

If you put it more towards the front of your vehicle, then your rear wheels will do most of the steering and vice versa.


Again, in most cases the best idea is to simply use your center of mass.
神崎剪刀 28 Sep, 2019 @ 7:12am 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1478767550 In your other creation I see this intersection point of lines outside the vehicle, usually the center of turning of a car is referred to as this point. However as you mention center of rotation I am very unsure about if they are the same concept or not. If this point is outside the vehicle how would I find it?
神崎剪刀 28 Sep, 2019 @ 7:07am 
When you refer to center of rotation does that mean the center of the turning circle or is it somewhere within the top view of the car? A wheeled car does not turn on the spot like a tracked vehicle do so I could not understand what do you mean by center of rotation of the vehicle. Could you please explain a bit more and how to find this point either way? Thank you.
Tajin  [author] 28 Sep, 2019 @ 4:24am 
The x and y are relative to where you want your center of rotation to be.
For cars it's usually a good idea to put that close to the center of mass.
Aljon 28 Sep, 2019 @ 3:55am 
Hello, I don't understand where to determine the x and y plane. From the top/side/bottom view of the vehicle?