I’m trying the rigidbody for the first time and I’m using rigidbody2D. I made the jump and it works fine, unless the character is moving. If I hold down the right arrow and moving and I jump, then the jump goes less than half the normal height.
Here is the code:
It works. I found out that it only works when I multiply the horizontal force by Time.deltaTime, even in the FixedUpdate. Do I really need to multiply it in the FixedUpdate? I took this code from the unity 2D sample project, it works fine and it doesn’t add Time.deltaTime, but in my project it does not work without it, and I don’t understand why