Search Issue Tracker
By Design
Votes
0
Found in
5.6.1p4
Issue ID
922695
Regression
No
CompositeCollider2D does not get hit by Physics2D raycast
Set geometry type to polygon. Outline works as edge collider which doesn't have "interior" which could be hit by raycast
To reproduce:
1. Open attached Unity project "Sandbox2.zip"
2. Open "TouchColliders" scene
3. Go into Play mode
4. Click on all 3 objects in the scene
5. Observe console
Expected result: Raycast should have hit all of the objects with 2D colliders attached to them.
Actual result: Raycast did not hit objects with Composite Collider 2D.
Reproduced on: 5.6.0b1, 5.6.2f1, 2017.1.0b10, 2017.2.0a4
Comments (5)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- MultiColumnTreeView does not auto-expand foldouts when autoExpand is set to "true"
- Animation does not control the property of the Gameobject when the keyframe and initial value are the same
- Decal Technique set to Automatic prefers the DBuffer option when using OpenGL
- Brush Size in the Inspector window does not update when the Brush Size in Scene View is changed
- "ArgumentOutOfRangeException" errors are thrown every time a keyboard key is pressed when renaming a component in UI Builder with a symbol and changing the name after label attribute warning
shubhamswaraj2021
Aug 19, 2020 05:48
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
luislodosm
Mar 15, 2018 21:28
Also a Button Component doesn't work with Composite Collider 2D. Same with OnPointerClick.
mateuscecilio
Nov 25, 2017 17:04
Why is this by design? How do you do them? Someone figured this out?
nialltl
Jul 25, 2017 17:47
Similarly interested in finding a workaround. I use composite colliders for level geometry and perform raycasts to determine whether a player's on the ground, and this is failing in several cases.
AlterHaudegen
Jul 02, 2017 16:41
What is the reasoning behind this being by design? What would be a workaround for this?