been trying to figure this out for ages now. Was trying to figure out a way to have my joystick when moved in any direction represent the numbers shown on the image in that direction. I essentially I want my players movement speed to be that of the value in the direction of the stick.

I just want some guidance in the right direction.
If I understand correctly what you have as input are
maxValuebelow)minValuebelow)So what you could use is a
Vector2.Dotproduct between the input andVector2.up(= fully Y direction)This will be
This information you can then further use as a factor in
Mathf.Lerpwhich interpolates between two values given a factoryou just need to map the given range from the dot which is within
-1and1onto an interpolation factor range between0and1like e.g.In case also the left/right value is a given value - assuming this because your values in the graphic wouldn't match as the left/right value for 3 and 1.5 would actually be 2.25 - you can basically use the same
dotcalculation from above but then have a check in which half of the circle you are and split the interpolation into the two according parts:As in the comments, indeed
Dotis basically based on sinus so there might occur some sort of smoothing around the end values.Alternatively you could simply go by angle and do e.g.