How do I restrict sprinting directions

So I have a sprinting system which works by the max walk speed is times by the multiplier (2) and divides the max walk speed when the character stops sprinting. However I only want the character to be able to sprint upper left, up and upper right. But I have tried a lot of things and nothing has worked. Please Help. :slight_smile:

Normalize the input direction and check a dot product against 2dVector(1,0). As long as the dot is greater than 0.707, continue sprinting.

@NotSoAccurateNo1 Thxs, however Im kind of new could you post your code pls?

As in moving forward? Then that’s already been done. In one of your previous posts, we’ve literally sent you a complete code. What else do you want us to do? lol