I can't seem to get the jumping to work - the problem I'm having seems to be when I try to implement gravity, specifically this line: jumpVelocity.y += playerStats.gravity * Time.deltaTime; If I remove that line, I can jump and float endlessly into the sky, but as soon as I put that line back in the character will not even leave the ground. Any idea on what I could be screwing up?
loving this series so far.
Very Cool :)
I can't seem to get the jumping to work - the problem I'm having seems to be when I try to implement gravity, specifically this line:
jumpVelocity.y += playerStats.gravity * Time.deltaTime;
If I remove that line, I can jump and float endlessly into the sky, but as soon as I put that line back in the character will not even leave the ground. Any idea on what I could be screwing up?
can u plz explain the gravity formula i searched a lot..plz explain each variable purpose to multiply
why did u keep jump velocity to -2 before jumping..plz explain me
based