- Home /
Collision Detection Issue – Player in the corners
Hi to everyone!
I have a collision detection issue. What we have:
Capsule Collider + RigidBody with gravity (Player). Friction and bounce – 0
Debug-rays inside player's OnCollisionStay for each ContactPoint
Mesh Collider
I constantly see that in some places (when Player stay in the corners) the ground Contact Point disappears for some reason example gif. In other corners, it's all fine. Is it possible to fix it?
Answer by JackTenSeven · Aug 17, 2016 at 05:50 PM
Hello Wine-Says I'm not sure if I have your answer but I might.
There could be two possible ways to fix this that I can think of,
First: Look at the inspector of both walls on either corner and make sure that their angles are the same and that the walls are equal just in case that this might be interfering.
Second: It might be possible that if you are the collisions are getting messed up because the wall collision is replacing the ground collision instead of adding on to the things be collided with. If this is the case this could be fixed by checking for the collisions in the Update() function or always check for other collisions when a collision is made.
I am really not 100% certain that these will help you but I thought I might try my best. -TenSeven