# How do I add a smooth force my player's rigid body, to make them jump?

I am trying to add force to the player's rigidbody, when the screen is held. I've written the following code:

float PlayerForce=50.0f;

void FixedUpdate()
{
bool PlayerActive = Input.GetButton ("Fire1");

if (PlayerActive) {
}
}


This does not add a smooth jump effect. I've searched for smooth force effect, but I didn't find anything useful. How do I add a smooth force my player's rigid body, to make them jump?

• Can you describe what you mean by "smooth" in this context? In what way is the current result lacking "smoothness"? – DMGregory Oct 18 '16 at 12:47
• Why are you using GetButton instead of GetButtonDown? – Vadim Tatarnikov May 5 '17 at 6:31

Use the AddForce like below and reduce PlayerForce value.
PlayerRigidBody.AddForce (new Vector2 (0, PlayerForce), ForceMode.Impulse);