horizontalThrow value doesn't quite go to 1 or -1 the second time

With both the keyboard and a controller, the first time I move all the way to one side it will start logging either 1 or -1 as expected, but if I let go and try it again, the highest it goes is 0.996 and it’s almost as if that value just stops because even with continued holding and my console set to collapse, the log for that value stays at 1 until I let go and the throw value returns to 0. I suppose it’s not a big deal, but I’m curious as to why it changes with the second round of input.

Yes, same here, wonder why…

Strange. Have you looked at the settings in Edit… Project Settings… Input (look in the Inspector, under Axis…)

Is there a “deadzone” on the axis in question? Is it ~0.003?

Same. I tried playing around with the dead property on the horizontal input but it didn’t seem to have any effect

Which Unity version are you using? It looks like nothing but a rounding error, maybe 0.9960243f + Time.deltaTime * sensitivity > 1.0000001f and so the unity engine is ignoring it. Do you get the same results if you drop the sensitivity (e.g from 3 to 1? or from 1000 to 10?)?

Privacy & Terms