stijnwop / guidanceSteering

Guidance Steering (AutoTrack) for Farming Simulator 22.
381 stars 94 forks source link

[BUG] shortcut for line shift L/R do not alter with vehicle direction #286

Closed Digoza closed 2 years ago

Digoza commented 2 years ago

Describe the bug When creating a line from north to south, east to west, etc. If your vehicle is facing the direction that the line was created in, the "shift left" "shift right" shortcuts move the line the appropriate direction.

If you turn the vehicle the opposite direction, the controls are reversed. (I.e. shift it left makes it go right, and vice versa)

To Reproduce Steps to reproduce the behavior:

  1. Create a new A/B line heading from south to north (or any direction)
  2. Turn the vehicle around so the line is now headed north to south
  3. Press the keyboard shortcuts to move the line left or right
  4. Observe line moving opposite direction of shortcut

Expected behavior I would expect a line to move left/right in accordance with the direction of travel, not in accordance with the direction the line was created.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

stijnwop commented 2 years ago

Well, the tracks are shifted to the left or right.. so in that context this is expected behavior as it's shift either to the left or right in the heading direction of the vehicle.

Digoza commented 2 years ago

Well, the tracks are shifted to the left or right.. so in that context this is expected behavior as it's shift either to the left or right in the heading direction of the vehicle.

true enough; but I even retested this a few minutes ago, created a track north to south, and then hit "shift left" and the track was shifting to the right; I hit "shift right" and the track shifted left. I turned the tractor around and repeated the steps and the track shifted the correct directions corresponding with my key presses.

Digoza commented 2 years ago

So I finally figured out the exact scenario that triggers this.

It doesn't happen for every line. It only happens when you rotate a line. After rotating the issue occurs.