Hi Guys.
I’m having an issue with my jumping mechanic.
I’ve set the jump height and distance but how do I set the jump speed? My character jumps too quickly. Ideally I’ve like to match the jump speed to moveSpeed variable.
This is my Jump code that is executed when the player swipes down on a mobile device.
myRigidbody.AddForce(10, 12, 0, ForceMode.Impulse);
This code makes the player continously run forward.
myRigidbody.velocity = new Vector3(moveSpeed, myRigidbody.velocity.y);
I’d like the speed of the jump to match the speed of the player running forward.