I am using a rigidbody with a box collider to move my player. When I walk up to a cube and collide with it and then jump directly upwards without moving any further, instead of landing back on the ground where I started the jump, I land on top of the cube, just barely on its edge.
How do I fix this?
If i start the jump on the ground and do not move, I want to end the jump (land) exactly at that point without getting caught on the edges of other colliders. I think the problem is that colliders ever so slightly overlap so when I collide with the cube the players collider is slightly inside the cubes collider and when jumping, the players collider lands on the edge of the cubes collider so what is the best approach to solve this issue or any other methods around it?