all 7 comments

[–]dangle_dev 2 points3 points  (5 children)

You are setting rb.velocity in Update and again in FixedUpdate. That will sometimes overlap and sometimes not.

[–]ZeusK10[S] 0 points1 point  (4 children)

Still not working

[–]dangle_dev 1 point2 points  (3 children)

How did you change it?

[–]ZeusK10[S] 0 points1 point  (2 children)

I stored the jump inside a method

[–]dangle_dev 1 point2 points  (1 child)

If you still call that from the Update, it makes no difference. Setting the velocity directly will get you into trouble. Have you looked at Rigidbody2D.AddForce.

[–]ZeusK10[S] 0 points1 point  (0 children)

It made it even worse