Let’s say I have a vehicle, and I can calculate its RPM.
Let’s also say that I have a tachometer image in UMG with a needle. For this needle, when its RENDERING COMPNENT’S ANGLE PROPERTY rotates -145 degrees, that means the RPM was 0. When it’s 145 degrees, that means the RPM was 8000
I need to set the tachometer needle based off my RPM.
Is there a mathematical blueprint function that can help me relate 0-8000 RPM and -145-145 respectivley?
I was thinking about using a lerp, but the alpha can only be set from 0-1… so I am stumped here