Hello, i have a problem wich the player keeps floating above the ground. My capsule collider is where it needs to be and it is not bigger than the player. Also, all my sprites are at the same level, when i created them i had this in mind. Its just that i cant make the player actually collide with the ground, it keeps floating a little above it. Please check the image.
This could be because of a raycast that checks for ground needs adjusting.
How are you testing for ground? You can add a Debug.Log(ground.gameObject.name) or something like that to see what the player is colliding with and making sure it is the actual ground object.
When I run into this problem, it is almost always because of a raycast that needs to be adjusted, or a collider is offset.