hi, I’m having trouble figuring out this math which should make the speed of a slider increase as you increase the power of a golf swing (by scrolling)
the power meter is on the left, and the slider is at the bottom. my problem is that the slider gets slower as the power bar goes up, and faster while the power bar goes down, where it should be the opposite.
here is my math. there is a tween that uses the variable SliderSpeed to change its speed.
power is a variable that can be changed from 0-100
I have the +0.5 at the end to ensure that the speed doesn’t reach zero, so the fastest speed is 0.5 seconds, and the slowest is 2 seconds.
how can I change this math so that when power == 0, slider speed will be 2, instead of 0.5.
basically, sliderspeed needs to decrease as power increases, instead of it increasing as power increases. thanks