#jump issue

1 messages · Page 1 of 1 (latest)

hot walrus
#

so im gonna do the same test again, except i'll have it log the velocity of the players rigidbody

lone kernel
#

you should also provide useful information in your logs such, remember they don't need to just be a single value or single bit of text, you can log a bunch of useful information or even use breakpoints to temporarily stop execution to inspect the values in your IDE

hot walrus
#

oooh, that's useful. how could i do that, i am still new to c# (just started two days ago)

lone kernel
hot walrus
#

alright after an entire hour of debugging i've found the true problem.
the force is being applied every physics frame, probably multiplying the jump force to itself

lone kernel
#

can you link the current code again?

hot walrus
lone kernel
#

ah, i see what it is now. on line 60 you're adding the Y velocity as force

hot walrus
#

i've used AddForce for the jump functionality

hot walrus
#

OMG THANK YOU SO MUCH

#

JFC WHY DIDNT I THINK THAT

#

omg

#

literally thank you in advanced that's really embarrassing

lone kernel
#

lol it happens

hot walrus
#

and thank u for actually teaching me how to debug as well