No guide or anything has been able to help me so far. They keep bringing in new issues that take much more effort to fix. Currently I can jump mid air and I need to fix that. Another issue I have is that it sometimes randomly makes me fly high up into the sky when I press jump, way more than it should.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Character_jump : MonoBehaviour
{
public float jumpforce = 10f;
Rigidbody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
void FixedUpdate()
{
if (Input.GetKeyDown(KeyCode.Space))
{
rb.AddForce(Vector3.up * jumpforce, ForceMode.Impulse);
}
}
}