Create a speedometer umg
How create a speedometer in umg using blueprints. It no possible use scaleform in ue4
asked Sep 04 '15 at 02:41 PM in Using UE4
First you need your widget to have a needle image note the pivot settings this is important. RenderAngle(degrees) is how we are going to spin it about its pivot(x,y)
Next you need your event graph like this, the math on the top can be tweaked according to your needs (how fast you want it to update etc) http://i.imgur.com/4BpheMu.png
Then the function to GetNormalizedVelocity looks like this http://i.imgur.com/9pjYWCN.png
Lastly the function GetVelocity like this, of course adapting it to whatever you want to get the velocity of http://i.imgur.com/wZUUxma.png
And if you want the velocity text (x m/s) you take GetVelocitys output and divide it by 100 then output it and bind your speed text number to that to get the proper value
Ive used this for speedos, noise meters, all sorts of things. Note -180 render angle is 0 on the meter and 0 is full. 90 is pointing straight down, -90 straight up, -179 is almost all the way backwards.
Don't forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.
Follow this question
Once you sign in you will be able to subscribe for any updates here