- Home /
Problem with 2D collision detection (Wide object falls through a thin hole)
Hi!
My Player object falls through a hole smaller than he is. I'm using 2D colliders and PlatformEffector 2D on platforms/walls.
https://giphy.com/gifs/popih9YJhZjYA/fullscreen
How can I prevent that from happening?
Thank You in advance! =)
Answer by canar · Jul 02, 2017 at 12:38 PM
Changing 'Collision Detection' from 'Discrete' to 'Continuous' seems to fix this problem, but I'm not sure if this is the best solution.
If it fixes it, why shouldn't it be? Is 5 + 6 better or worse than 6 + 5?
I just wasn't sure if this solution wouldn't make another (obvious for experienced user) issue. It works well =)
Your answer
Follow this Question
Related Questions
Object passes through collider even when isTrigger is turned off. 2 Answers
Box Collider 2d Not Colliding 0 Answers
After Collision Matrix change in runtime, effects not immediatly visible 1 Answer
Bullets go through collider even with continuous collision detection! 0 Answers
Physics2D.CircleCast result doesn't match with actual circle object's collision detection 0 Answers