Bullets shoot with an angle if i aim directly upwards with a controller stick

Continuing the discussion from Finally made the projectiles shoot in every direction:

for some reason if i try to aim upwards with the controller stick it always shoots with an angle, is there a fix to that? i tried Axis deadzone but couldn’t figure out what to do, please help :’)

Hi,

Have you already tried to add Debug.Logs to your code to see what is going on during runtime? What values do you get?

If it’s 0.7, go to the Input Actions (new Input System) and set the Composite > Mode to “Digital”. By default, it is set to “Digital Normalized”. You may also test the other mode options.

1 Like

Hi, thank you for answering me, the values were 1.
but i actually did find a solution which was simple, just replaced “>0” and “>Mathf.Epsilon” for “>0.250” in the script and it worked

Good job! :slight_smile:

1 Like

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

Privacy & Terms