-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Going backwards makes input going forwards on MP4 #30
Comments
@Atheuz Perhaps you wanna look into this? (Otherwise I'll check it out later myself haha) |
It looks to me that InputGasPedal is always positive, but when going in reverse the gear is 0. |
The vehicle velocity itself has little to do with which inputs are pressed, so we can't really check gear value. |
I'm not sure I completely understand that statement.
My conclusions from this observation:
|
Ah, yes you are right. |
Note the InputIsBraking. That is the value that is used to set the backwards key: https://github.com/codecat/tm-dashboard/blob/master/Source/Pads/Keyboard.as#L20 |
From some experimentation, it appears to me that:
There seems to be a problematic edge-case near zero speed, which could be fixed if we could replace the car's linear velocity with the wheel's angular velocity for the above conditions. This observation also predicts that the inversion of this bug would also appear: driving with negative velocity, and then braking with the up-key will be displayed as a down-input. From my testing, this is true (at speeds above when the wheels start spinning). |
When I go backwards, the inputs visualizer makes the forward inputs show instead of the backwards
In the example below, the speed viz is negative (meaning it's backwards) but the inputs show forwards
![image](https://user-images.githubusercontent.com/42576124/133837942-4d1c6cf4-d9cb-466d-9c0c-2caf22b50571.png)
The text was updated successfully, but these errors were encountered: