Search Unity

Just bouncing on ground instead of "walking" on it

Discussion in 'Scripting' started by VoYaGeYT, Apr 13, 2021.

  1. VoYaGeYT

    VoYaGeYT

    Joined:
    Mar 28, 2021
    Posts:
    2
    isGrounded = Physics.CheckSphere(groundCheck.position, groundDistance, groundMask);

    this line of code (which is from Brackeys video on fps controll) makes me just bounce on the ground and not actually let me stay on the ground

    How can this be fixed. (if you need full line if code i can give it too you)
     
  2. VoYaGeYT

    VoYaGeYT

    Joined:
    Mar 28, 2021
    Posts:
    2
    NVM fixed it