- Home /
Question by
supergula · Sep 07, 2017 at 05:35 PM ·
componentpointerspeedometer
Make an object's rotate by comparing it to a parameter
Hey everyone,
I'm trying to make a simple analog speedometer. I took the car's magnitude and tried to store that magnitude into the speedometer's pointer Y axis so what will happen is that when the car's magnitude is, say, 20, the pointer will point at 20 degrees.
The thing is, I can't do it...
any ideas?
Comment
Best Answer
Answer by Akusan · Sep 07, 2017 at 05:49 PM
Use this:
http://answers.unity3d.com/questions/604651/setting-value-of-transformrotation-in-code-c.html