Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.3.X, 2021.1.X
Votes
1
Found in
2019.3.10f1
2019.4
2020.1.0b2
2020.2
2020.2.0f1
2021.1
2021.2
Issue ID
1303344
Regression
Yes
Raycast does not hit BoxCollider2D with RigidBody2D when it's rotated 180 degrees
How to reproduce:
1. Open the attached project ("Raycasttry.zip")
2. Load "SampleScene"
3. Enter Play mode
4. In the Scene View drag "GameObject" so the ray touches the upper side of the rectangle
5. Rotate one of the rectangles 180 on the Z-axis
6. In the Scene View drag "GameObject" so the ray touches the upper side of the rectangle
Expected results: The ray turns green because the BoxCollider2D was hit
Actual results: The ray stays red because the BoxCollider2D was not hit
Reproducible with: 2019.3.10f1, 2019.4.18f1, 2020.1.0b2, 2020.1.17f1, 2020.2.3f1, 2021.1.0b3, 2021.2.0a2
Not reproducible with: 2018.4.31f1, 2019.3.9f1, 2020.1.0a1, 2020.1.0b1
Note: Object must have both BoxCollider2D and RigidBody 2D components
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Vertical and horizontal scrollbars appear and disappear when dragging an attribute to a different position within the Shader Graph Hierarchy
- AudioSource.PlayDelayed() does not work with Audio Random Containers
- Compatible with the VFX Graph Shader Graph can't be dragged and dropped into the "Output" block from the Project window
- [Silicon] Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
- Temporal Anti-aliasing causes jittering/shaking when using a Camera overlay in the Scene View
Add comment