March 20, 2023 4:04 PM CET
I think I see how this is done to create a differential drive.
1) Create a Joystick control and feed the X axis to the Left drive wheel, and the Y axis to the Right Drive Wheel.
2) Now rotate the joystic control 45 degrees counter clockwise.
How it works..
If you push the JS up, it will give positive power to both the left and right wheels. Tank moves forward
If you push the JS down, it will give negative power to both the left and right wheels. Tank Moves Backwards.
If you push the JS to the right it will give positive power to the left wheel, and negative power to the Right wheel, which will make the tank turn right.
If you push the JS to the left it will give negative power to the left wheel, and positive power to the Right wheel, which will make the tank turn left.
To get this to work correctly, you will need to make sure each wheel drives forward when the stick is pushed forwards. So, check your inverts.
It would be better if this could be done using simple add/subtract math on ANY two sliders, but something is better than nothing :)