-
Notifications
You must be signed in to change notification settings - Fork 178
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
✨ Add option for Keyboard Steering Sensitivity #3120
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work.
Our steering actuators 'hydros' have user-defined extension lengths, so naturally each vehicle handles differently. The max. steering radius isn't defined, it comes out as result of the ext. length. I don't even know if the extension speed depends on length or is fixed. How does VDrift/StuntRally do this?
Well, VDrift/StuntRally just have classes that set wheel steer angle but nothing is physical. A setup file .car has max steering angle and all key inputs have sensivity etc. So it just sets angle from input directly. |
Right. All our contacts are evaluated as node vs. surface, where surface is in charge of all the properties, node is dimensionless and frictionless point only. Tires are no exception, they are rolling frames and they are not built free-form but generated by |
Most vehicles use set_node_defaults to change wheel friction. |
Okay thanks for info. BTW, could an administrator (IDK who) approve one of my accounts for RoR Forum, which I tried recently: CrystalHammer, Crystal Hammer or cryham? I did email contact, only email I found 6 days ago. Sorry IDK how else to contact, I'm not on discord. |
Oh right, I forgot the 'friction coef' parameter of 'set_node_defaults' directive. So I was mistaken, the node actually does affect it's friction, the code is in Collisions.cpp, Merging this is just a matter of me (or few others) pushing the green button, I'll do it shortly. I'm really happy you took the effort of setting up the build and submitting a patch. I'll also look at your account. |
Much better 👍 |
Sorry about the delay on my end, I'll catch up on weekend. Btw the button is a nice touch. PS: on second look, it's not obvious to me what the 'Coupling' checkbox does now... Does it mix with the slider? Does the checkbox override the slider? I can't test it ATM |
1267cec
to
54e6794
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bug - when using controller, the smoothing only affects centering, not the actual steering: https://discord.com/channels/136544456244461568/189904947649708032/1216845086956982385 |
I'm not on discord so can't access. |
Ah ok interesting. I'll try finding out. |
Yes, ideally the slider shouldn't affect analog input. |
Solution would something like:
IDK how to set analog though. It should be true when using analog game controller, and false for just keyboard. |
So I added a new var and a slider on GUI for Keyboard Steering Sensitivity,
which is simply how fast you steer wheels with keyboard left/right. Default 1.0 is like it was before.
Depends on vehicle actually. Some had slow steering so 2.0 is fine for me now, some had okay and it's not needed above 1.2 etc.