I need to use a car joystick (car handlebars and pedals) in Unity, but I can’t found tutorials. Could you give me tutorials for use and programm car joystick in Unity?
Start with guides on how to make a car in Unity (plenty on YouTube), then add the joysticks etc.
If you already started share where you got stuck
I was searching YouTube videos about use car joystick in Unity, but I only found realistic car moving and joystick for android screen.
I mean something like this, it is the car joystick that I need to use in Unity:
Depends on the wheel. Some map to xinput (Xbox controller), some to keyboard, and very few map to their own proprietary input metrics.
If you use the new input system you can listen to the input of your device when it’s setup
Could you give me examples for programm that car joystick in Unity? Sorry I wasn’t so clear but I need to programm that car joystick for my Unity videogame.
I’m not going to do it for you. Try to set it up and then listen to input with the new input system.
And look up which input it uses. Should be somewhere in the manual
I resolved the problem, thank you!! I only needed make axis in project settings and use
Input.GetAxisRaw(“Horizontal”);, input.GetBottom(“Fire1”) and input.GetBottom(“Fire2”) and it works!!
Input.GetAxisRaw(“Horizontal”) is for move the wheel and input.GetBottom(“Fire1”) and input.GetBottom(“Fire2”) is for use the pedals.
