Better Vehicle Control Scheme.
Posted: Fri Apr 18, 2025 5:23 pm
The basic idea is to use the same cardinal controls as a player does. However, this isn't exactly straightforward, for several reasons.
The basic idea is that you capture the wasd input, and get a cardnal direction one of 8, and the car turns towards that direction and accelerates. If it is a shorter distance to rotate to go backwards, it will do so, so you can still drive backwards.
The big problem is that you either have to entirely script the vehicle movement, or you need a hidden dummy proxy vehicle, which the player actually enters, to capture the keystrokes used. (Since hotkeys only capture keypresses, not holds or releases)
I have a partial prototype, which is as far as I got before I found the fundamental limitations of the engine and my understanding.
The basic idea is that you capture the wasd input, and get a cardnal direction one of 8, and the car turns towards that direction and accelerates. If it is a shorter distance to rotate to go backwards, it will do so, so you can still drive backwards.
The big problem is that you either have to entirely script the vehicle movement, or you need a hidden dummy proxy vehicle, which the player actually enters, to capture the keystrokes used. (Since hotkeys only capture keypresses, not holds or releases)
I have a partial prototype, which is as far as I got before I found the fundamental limitations of the engine and my understanding.