Hey guys so…i am trying to make a physic based controller with a ragdoll… i made this two lines for jumping :
public class Jump : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetButtonDown("Jump"))
GetComponent<ConstantForce>().force = new Vector3(0, 150, 0);
else
GetComponent<ConstantForce>().force = new Vector3(0, 100, 0);
}
}
and my character keeps floating when i continiously press jump…
my mind cant seem to work with this so i need a little help…how to stop this on a single jump or maybe on a double?