Question by
nicoolsen10 · Jan 31, 2020 at 12:56 PM ·
3dcharactercharactercontrollerjump
Can someone help me with why my jump wont work properly
so I have made this for jumping but and I have sat my character a little bit above the ground but he won't fall down to the ground like gravity won't pull him down so my jump part won't work and if I place the character on the ground he will just begin to float upward this is my jump code
if (cc.isGrounded)
{
if (Input.GetKeyDown(KeyCode.Space))
{
ySpeed = 5f;
}
else
{
ySpeed = gravity * Time.deltaTime;
}
}
Comment