My left stick has drifting on the Y axis. How do I fix the character so that it moves above the threshold of any drifting?

I’m finally making the character for my game after a ton of level design. However, I found out after following Bohl’s tutorial that my left stick of my gamepad has a mild drifting on the Y axis, found it out after printing the movement in the Y and it was like 0,0010~0,0005 more or less if I reckon well (I bet that happened when someone tried to broom the floor and tugged the cord knocking the gamepad to the floor :weary:).
Even being so mild of a drift, it moves the character slightly to the front. I made it so that it doesn’t do the Walk Animation while beneath at certain Velocity, but the drifting still moves the character forward, to the point of making it turn towards where it’s facing.

I barely reckon to have heard about how games have implemented something called “dead-zones” or something of the sort, so that if you have any kind of drifting on your gamepad, it will not pick it up until the stick is pushed above a certain angle.

Do you know where and what node should I use to prevent the character to pick up any drifting of the stick? I could adjust it so that it ignores any 0,0xxx and tweak from that reference :thinking:

Thanks in advance! :+1:

Are you using enhanced input for controls, or just setting up inputs in the mapping panel of project settings? If using enhanced input, you can add a dead zone modifier to the mapping context and tweak the value to avoid the drift. If using the old school input mapping in project settings, there should be a dead zone field on axis inputs.

2 Likes

Ah, yes! I was using an Input Mapping Context because I was suggested it was better to tweak with more detail the movement of the player. And it happens it’s so! Just like here:


Even the defaults for the Dead Zone Modifier works like a charm! :grin: Thanks a lot for pointing where to find it :partying_face: I’m going to add it to the right stick too for any players that might have drifting there too. Thanks again for the help!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.