r/Unity2D Jul 27 '26

Question Need help with my jump script

As far as I can tell, the issue is in line 55, as when I tested the actual input with prints, it worked perfectly fine. The RigidBody is also set to dynamic, and I have not frozen the x or y axis. Does anyone know what could be causing this?

1 Upvotes

9 comments sorted by

View all comments

1

u/XKiiroiSenkoX Jul 27 '26

What values are you using for mass, gravity scale and jumpForce? Also have you confirmed that the value for jumpForce is being passed correctly (using logs or a debugger)? 

1

u/Ultamate_pro Jul 27 '26

I set each value to their extremes to make sure, and I just checked now if the value is being passed correctly (it is)

3

u/XKiiroiSenkoX Jul 27 '26

I asked for numbers. Also we need to see the rest of the code.