Hi everyone!
I have been working/messing with Unity for two years, but I have reached a roadblock in my current “experiment” that I can’t find how to resolve.
Following Jimmy Vega’s tutorial about doing a racing game, I’m trying to build a game using the car controllers from StandarAssets. The trick is that I want the car to be controlled not but the physical keyboard, but using on-screen UI buttons since it is mainly intended for a kid which has a high degree of disability and can only use its computer with eye-tracking devices like Tobii.
I have tried attaching the AxisTouchButton script (also from the StandarAssets) to the buttons so they provide the input for the Axes, and this technically work (a simple Log of “m_Axis.GetValue” shows how the values change) but these inputs do not reach CarController as the keyboard do, so the player car doesn’t move
I would thank any tip or help about making this “connection”. The axis value change when pressing the UI buttons, so I don’t get why the script for driving the car do not feed on them as when insrted via keyboard.
Many thanks in advance!