Hi, I need a script that can create a digital speedometer (with gui text)
I don’t want that fancy speedometer with a image, just a simple gui text that displays the speed of a car (which is the player)
I know that in this forum are a lot of examples of what I want, but none of that examples worked.
Sorry for my bad english
Thanks.
Are you looking for someone to create that script for you? If so, you may want to head over to the Unity Connect forum.
Look at this link in the answer: How can I make an on-screen speedometer? - Questions & Answers - Unity Discussions
And here more results after searching in google: unity3d digital speedometer - Google Search
Here in youtube many tutorials with scripts: https://www.youtube.com/results?search_query=unity3d+speedometer+tutorial
thanks anyway
Your object’s velocity on the Z axis is already a simple speedometer in meters per second (assuming you’re using the default 1 unit = 1 meter scale). Just write that value to a text object. If you want the speedometer in KPH or MPH just do the simple conversion first.
If you don’t know what any of that meant, step back and start with some basic tutorials on the topics of gameobjects, rigidbodies, and UI.
All those tutorials on youtube have this horrible fancy neddle I want a DIGITAL speedometer.
Thanks anyway
simply use rigidbody.velocity.magnitude ![]()
a digital speedometer like this: …?
if you break it down

you’re drawing a line from the center, to a speed (point on circumference)
so just map your speed 0-200, to 0*-180* degrees. and find the point on the circle that matches your speed. draw a line from origin to speed.