title: I can't check isGrounded on the rope bridge
body: <p>Friends, I have been studying Unity for only 3 months. I need to create a 3D platformer as a test case to get the job. And already at the initial stage, I ran into the problem that I cannot properly check isGrounded.
  I made it like this:</p>
  <pre><code>public bool IsGrounded ()
      {
          if (Physics.Raycast (transform.position, Vector3.down, colPlayer.bounds.extents.y + 0.1f))
              return true;
  
          return false;
      }
  </code></pre>
  <p>The fact is that I have many small platforms that touch each other, each of them has its own collider. And when a character passes the border of these platforms, sometimes he loses the isGrounded state. I solved this problem by making a common collider for these platforms.</p>
  <p>But then, rope bridges appeared in the game, which sag a little. Because of this, gaps appeared between the platforms. Here it is already impossible to assign a common collider to them. I partially solved the problem by increasing the area of ​​each collider so that they touch each other and penetrate one into one. This almost solved the problem, the state isGrounded on the bridge is rarely lost. But still it gets lost. In addition, the platforms do not behave very naturally due to the density of colliders. For example, if you jump on them from a height, colliders begin to push each other out. So I am looking for another way to determine the isGrounded state, maybe there is some more complex, but effective method?</p>
  <p>I tried making two empty objects at the player's legs and directing a raycast from them, and doing isGrounded false only if both legs are false. But for some reason it works even worse on bridges. I could not find any other ways. Can someone please help?
  Thanks.</p>