- Home /
Player floating on the ground
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.
Sorry, but I don't think anyone would be able to answer your question with this little details about your issue.
Answer by I_Am_Err00r · Jul 23, 2019 at 01:28 PM
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.