- Home /
Why some types of colliders2D can't be hit be sweeps?
Hi, I creating scripts to visualize geometry queries in unity ( raycasting, sweeping, overlaping).
I have a problem, because some kinds of colliders2D can't be hit. I made full test for all colliders and create a table which colliders can be hit. One of reasons why I can't hit something is because it hasn't edgeRadius greater then 0. In case of CompositeColliders2D and EdgeColliders2D I know that they can't collide with themselves and each others in actual version of unity. Here you can find some examples: https://github.com/MelvynMay/UnityPhysics2D
In case of BoxColliders is weird behaviour.
Somebody know more about this issues?
Your answer

Follow this Question
Related Questions
Mesh collider collision detection 0 Answers
How does Bounds.Encapsulate() work? 2 Answers
Connecting HingeJoint2D to clicked upon spot 1 Answer
How to make BoxCollider2D not scale 2 Answers