Interfacing Arduino with Unity

Hello!

I am working on an undergrad project of mine and am stuck up. Your help will be greatly appreciated. I am new to Arduino coding. I need to interface my Arduino Uno with Unity. The project goes like this:

The project requires me to control the car, in a car game in Unity using Arduino Uno. What I wish to do is attach a servo to the steering wheel of my REAL car (kindly suggest a better way, if any) and connect it to Arduino Uno. So when I rotate my real steering wheel, the car in my game is rotated accordingly. I would be really grateful if you can help me figure out a way to program the Arduino and interface it with Unity Game Engine. My mentor strictly mentioned that the interfacing should be as smooth as possible. Kindly let me know how to proceed.

I already have the game built in Unity, just need to interface it with Arduino Uno.

Thanks for the help in advance!

Regards

Do not cross-post. Other thread removed.

arya1207:
I need to interface my Arduino Uno with Unity.

What is Unity?
How will it connect to the Arduino?
What sort of input data does it require?

What I wish to do is attach a servo to the steering wheel of my REAL car

Hobby servos are output devices, not input devices. Perhaps you mean a rotary encoder?

...R

So I am going to assume you are meaning for the physics/graphics platform for making games when your talking about unity. First off I would assume that you would have to go into research on how unity would accept data. I know that there are ways to program it by hand and it's not just a gui. So your first step would be to research on how to input data to code that unity could use. Getting serial from an encoder would be rather easy and it would just be a matter of sending that information to a computer. The biggest issue at this point in time that I can't see if how your going to get input from the car. I mean you can about the route of going though the cars internal bus's (depending on make and model) but judging from the lack of electronics knowledge that you showed in your post I think that would be rather impossible (Sorry but this pretty advanced stuff). I guess you could try and see if you could find an encoder that would fit on the steering column of your car (probably without the plastic on). Basically at this point I think you need to work much more on the mechanical aspect of things and making sure that it would work before you dive too deep into code because you don't want to waste your time if an idea can't work and you already have the code for it.