I am making a simple jump script by adding a separate script to the character.
I got the character from https://assetstore.unity.com/packages/3d/characters/jammo-character-mix-and-jam-158456#contentI got the character from the Asset Store and I have left it untouched. I have searched the solution and similar problems to this, and I changed the force or JumpHeight to a pretty high value. But it is still nothing. The logs are printed out just fine.
public class JumpScript : MonoBehaviour {
public Rigidbody rb;
public float JumpHeight = 7.0f;
// Update is called once per frame
void Update () {
if (Input.GetKeyDown (KeyCode.Space)) {
Debug.Log ("PRESSSED");
GetComponent<Rigidbody> ().AddForce (Vector3.up * JumpHeight);
Debug.Log (GetComponent<Rigidbody> ());
}
}
}