- Home /
Question by
coolmist · Sep 02, 2017 at 06:58 PM ·
colliderphysics2dcollider2d
Why Collider2D.OverlapPoint does not work with CompositeCollider2D?
I have tried many times. It just not works at all. With the same shape, if I use a PolygonCollider2D, everything works fine. And if I replace PolygonCollider2D to a CompositeCollider2D composited by several BoxCollider2D, it does not work at all with the same code. I don't know why.
Comment
Answer by coolmist · Sep 02, 2017 at 07:14 PM
Oh, I got the point. It is related to Geometry type. In default, The GeometryType of CompositeCollider2D is outlines. it is made by edges. And OverlapPoint will always return false for edges...
Your answer
![](https://koobas.hobune.stream/wayback/20220612134051im_/https://answers.unity.com/themes/thub/images/avi.jpg)