Hi, I’m unsure whether this is a trivial matter but I tried searching online for it but didn’t find anything.
The X and Y axis of a controller’s thumbsticks in my project like to slightly snap to 90-degree intervals. I’m unsure whether this is an engine thing or something to do with the controller itself.
If it is an engine thing, could anyone tell me how to disable it since it just feels off in my game.
You may need to include more detail regarding what and how you’re doing what you’re doing as the above works as intended and produces values in the -1 <> 1 range. What you then do with those values is another matter, ofc.
Also, what does 90-degree intervals mean? Axis values produce the Scale float (top pic). If I punch in 5, I’m going to get ranges -5 <> 5. You then apply that value every frame - these are the usual circumstances. Are we dealing with something uncommon here instead?
Sorry, I am using DegAtan2 to convert the X and Y axis values into an angle.
So:
(0, 1) = 0
(1, 0) = 90
(0, -1) = 180
(-1, 0) = 270
I just tested it the same way you did using the event and it worked as intended. But when you get the values directly through one of the getters (such as ‘Get Gamepad Right Thumbstick X’, there seems to be some extra dead-zones around the 0, 1 and -1 values.
I am using the getters as opposed to the event because:
I can’t seem to compile the 2D axis event in C++.
I need delta time.
I guess I could hack my way to use delta time with the BP 2D axis call if I really had to.
Actually, I’m going to do that now until a better solution is found.